mirror of
https://git.cloudron.io/cloudron/gitea-app
synced 2025-09-25 14:37:44 +00:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
d953377320 | ||
|
ad071c67ab | ||
|
5bb07d9abf |
@@ -1822,3 +1822,7 @@
|
||||
* Fix container range bug ([#​34795](https://github.com/go-gitea/gitea/issues/34795)) ([#​34796](https://github.com/go-gitea/gitea/issues/34796))
|
||||
* Upgrade chi to v5.2.2 ([#​34798](https://github.com/go-gitea/gitea/issues/34798)) ([#​34799](https://github.com/go-gitea/gitea/issues/34799))
|
||||
|
||||
[1.36.3]
|
||||
* With Cloudron OIDC, disable registration by default on new installation
|
||||
* Without Cloudron OIDC, enable registration by default and add checklist item
|
||||
|
||||
|
@@ -4,7 +4,7 @@
|
||||
"author": "Gitea developers",
|
||||
"description": "file://DESCRIPTION.md",
|
||||
"tagline": "A painless self-hosted Git Service",
|
||||
"version": "1.36.2",
|
||||
"version": "1.36.3",
|
||||
"upstreamVersion": "1.24.1",
|
||||
"healthCheckPath": "/explore",
|
||||
"httpPort": 3000,
|
||||
@@ -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",
|
||||
|
@@ -75,7 +75,7 @@ REVERSE_PROXY_LIMIT = 1
|
||||
REVERSE_PROXY_TRUSTED_PROXIES = *
|
||||
|
||||
[service]
|
||||
DISABLE_REGISTRATION = false
|
||||
DISABLE_REGISTRATION = true
|
||||
SHOW_REGISTRATION_BUTTON = false
|
||||
ENABLE_NOTIFY_MAIL = true
|
||||
|
||||
|
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
|
||||
|
Reference in New Issue
Block a user