Skip to content

Draft: community/gogs: assume maintainership and release v0.12.9-1

Ghost User requested to merge (removed):gogs-0.12.9-1-v2 into master

Added subpackages:

  • gogs - gogs binary
  • gogs-common::noarch - reworked app.ini and dir structure
  • gogs-config::noarch - optional config examples and templates
  • gogs-pam - gogs binary with PAM auth support, linked libpam0
  • gogs-templates::noarch - optional web templates and public
  • gogs-openrc - openrc start script and config

Fixed mispelled /var/lib/gogs/attach(e)ments directory

  • Existing attachement directory should be renamed during install/upgrade
  • app.ini needs to be updated after upgrade

More restrictive permissions

  • Added new group gogs
  • Existing user gogs will be updated during install/upgrade
  • Permissions and ownership will be updated during upgrade. Please check this also manually after upgrade.

User gogs will be locked after upgrade.

  • This is a system user and there should be no need to have this user configured for logins.

Configuration app.ini needs modifications to be compatible. Please see https://github.com/gogs/gogs/blob/v0.12.9/CHANGELOG.md for changes, removals, additions. Please go back in history to catch really all changes in configuration. The new provided app.ini has all currently available settings with descriptions.

Notable changes since last revision:

  • Set INSTALL_LOCK = true New installations can set this to false and visit /install or config is done in app.ini and first registered user will be admin user.
  • Set REPOSITORY_AVATAR_UPLOAD_PATH = /var/lib/gogs/repo-avatars
  • Prometheus metrics /-/metrics is disabled by default for safety. There should be set an authentication user/password in config.

Take care of [security] SECRET_KEY to not use the preconfigured default value. This is used to encrypt cookies and 2FA codes and should be unique per installation. It would be also wise to change the cookie settings.

If you want to modify the UI, you can install gogs-templates, modify the files and set LOAD_ASSETS_FROM_DISK = true. The lookup might be done via GOGS_CUSTOM directories which are /etc/gogs/public, /etc/gogs/templates by default. These are links to /usr/share/gogs/web after the installation.

Some more defaults can be changed and gogs customized by using the gogs-config package and starting with newly added files in /etc/gogs.

Edited by Ghost User

Merge request reports

Loading