mirror of
https://git.cloudron.io/cloudron/gitea-app.git
synced 2025-09-30 08:02:04 +00:00
enable registration by default in non-sso mode
This commit is contained in:
parent
5bb07d9abf
commit
ad071c67ab
2 changed files with 9 additions and 0 deletions
|
@ -52,6 +52,10 @@
|
|||
"checklist": {
|
||||
"change-default-password": {
|
||||
"message": "Change the default admin password"
|
||||
},
|
||||
"disable-registration": {
|
||||
"message": "Disable registration, if required, to prevent misuse",
|
||||
"sso": false
|
||||
}
|
||||
},
|
||||
"minBoxVersion": "8.1.0",
|
||||
|
|
5
start.sh
5
start.sh
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue