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 -
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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login