Solved Questions about Cloudron Gogs Config File Settings
Just switching over to Cloudron Gogs from a standalone install.
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
All excellent information. Thanks! I was able to get everything set up the way I wanted. And MUCH easier than the standalone installation. As a fan of self-hosted, I'm really enjoying Cloudron.