diff options
Diffstat (limited to 'docker')
-rwxr-xr-x | docker/etc/s6/gitea/setup | 2 | ||||
-rw-r--r-- | docker/etc/templates/app.ini | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/docker/etc/s6/gitea/setup b/docker/etc/s6/gitea/setup index 6ca9b82123..500cca584c 100755 --- a/docker/etc/s6/gitea/setup +++ b/docker/etc/s6/gitea/setup @@ -35,6 +35,8 @@ if [ ! -f /data/gitea/conf/app.ini ]; then DB_USER=${DB_USER:-"root"} \ DB_PASSWD=${DB_PASSWD:-""} \ INSTALL_LOCK=${INSTALL_LOCK:-"false"} \ + DISABLE_REGISTRATION=${DISABLE_REGISTRATION:-"false"} \ + REQUIRE_SIGNIN_VIEW=${REQUIRE_SIGNIN_VIEW:-"false"} \ SECRET_KEY=${SECRET_KEY:-""} \ envsubst < /etc/templates/app.ini > /data/gitea/conf/app.ini fi diff --git a/docker/etc/templates/app.ini b/docker/etc/templates/app.ini index 2375f8f533..9e0a3dd5c8 100644 --- a/docker/etc/templates/app.ini +++ b/docker/etc/templates/app.ini @@ -38,3 +38,7 @@ ROOT_PATH = /data/gitea/log [security] INSTALL_LOCK = $INSTALL_LOCK SECRET_KEY = $SECRET_KEY + +[service] +DISABLE_REGISTRATION = $DISABLE_REGISTRATION +REQUIRE_SIGNIN_VIEW = $REQUIRE_SIGNIN_VIEW |