1
0
mirror of https://git.cloudron.io/cloudron/gitea-app synced 2025-09-16 10:19:23 +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

@@ -52,6 +52,10 @@
"checklist": { "checklist": {
"change-default-password": { "change-default-password": {
"message": "Change the default admin password" "message": "Change the default admin password"
},
"disable-registration": {
"message": "Disable registration, if required, to prevent misuse",
"sso": false
} }
}, },
"minBoxVersion": "8.1.0", "minBoxVersion": "8.1.0",

View File

@@ -78,6 +78,11 @@ if [[ ! -f /app/data/app.ini ]]; then
echo "==> Generating new SECRET_KEY" echo "==> Generating new SECRET_KEY"
crudini --set "/app/data/app.ini" security SECRET_KEY $(pwgen -1 -s) 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 fi
# merge user config file # merge user config file