Skip to main content

Logo Gogs

About​

Gogs is a painless self-hosted Git service.

Customizing gogs​

Gogs supports various customizations. To add customizations, use the File Manager) and edit the file named /app/data/app.ini.

After editing, restart the app for the changes to take effect.

Custom templates​

Override HTML templates (including templates for emails) by creating a customized version under /app/data/custom/templates/ directory. See the Gogs docs for more information.

Edit the files using the File Manager. After editing, restart the app for changes to take effect.

CLI​

The gogs CLI can be used as follows:

Bash
sudo -u git /home/git/gogs/gogs -c /run/gogs/app.ini

For example, to delete inactive accounts:

Bash
sudo -u git /home/git/gogs/gogs admin delete-inactive-users -c /run/gogs/app.ini

To create a backup:

Bash
sudo -u git GOGS_CUSTOM=/app/data/custom /home/git/gogs/gogs backup -c /run/gogs/app.ini --target /app/data/backups