Questions about Cloudron Gogs Config File Settings
-
Just switching over to Cloudron Gogs from a standalone install.
Questions:
1.) Where is the config file on the server? Is it possible to modify it manually? I ask because the Gogs settings in the browser have always been read-only. Unless there's a way to edit everything there. (I located an /run/gogs/app.ini but comments said not to edit that one).
2.) How do I disable registration in the Cloudron version?
-
@ambaxter All user settings for Cloudron apps are localed under
/app/data
. For Gogs, you can add custom settings to/app/data/app.ini
. You can also edit this file using the File Manager (under 'Console' section of the app).There's more info here - https://docs.cloudron.io/apps/gogs/
-
It seems the config docs (https://gogs.io/docs/advanced/configuration_cheat_sheet) is now broken. Maybe https://github.com/gogs/gogs/blob/main/conf/app.ini is a better reference now.
To disable registration, add the below in app.ini and restart the app:
[auth] DISABLE_REGISTRATION = true
-
@girish said in Questions about Cloudron Gogs Config File Settings:
It seems the config docs (https://gogs.io/docs/advanced/configuration_cheat_sheet) is now broken.
source still available https://github.com/gogs/docs/blob/b3379ec57b24f2a9a079c0cd9fede86fec6e3a99/en-US/advanced/configuration_cheat_sheet.md