1
0
mirror of https://git.cloudron.io/cloudron/gitea-app synced 2025-09-15 17:39:15 +00:00

enable registration by default in non-sso mode

This commit is contained in:
Girish Ramakrishnan
2025-07-11 16:38:18 +02:00
parent 5bb07d9abf
commit ad071c67ab
2 changed files with 9 additions and 0 deletions

View File

@@ -78,6 +78,11 @@ if [[ ! -f /app/data/app.ini ]]; then
echo "==> Generating new SECRET_KEY"
crudini --set "/app/data/app.ini" security SECRET_KEY $(pwgen -1 -s)
if [[ -z "${CLOUDRON_OIDC_ISSUER:-}" ]]; then
crudini --set "/app/data/app.ini" service DISABLE_REGISTRATION false
crudini --set "/app/data/app.ini" service SHOW_REGISTRATION_BUTTON true
fi
fi
# merge user config file