diff --git a/app.ini.tmpl b/app.ini.tmpl index 1d332bc..a072ed2 100644 --- a/app.ini.tmpl +++ b/app.ini.tmpl @@ -8,6 +8,15 @@ NAME = {{ env "GITEA_DB_NAME" }} PASSWD = {{ secret "db_passwd" }} USER = {{ env "GITEA_DB_USER" }} +[service] +ALLOW_ONLY_EXTERNAL_REGISTRATION = {{ env "GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION" }} +DISABLE_REGISTRATION = {{ env "GITEA_DISABLE_REGISTRATION" }} +ENABLE_NOTIFY_MAIL = {{ env "GITEA_ENABLE_NOTIFY_MAIL" }} + +[openid] +ENABLE_OPENID_SIGNIN = {{ env "GITEA_ENABLE_OPENID_SIGNIN" }} +ENABLE_OPENID_SIGNUP = {{ env "GITEA_ENABLE_OPENID_SIGNUP" }} + [indexer] STARTUP_TIMEOUT = 0 diff --git a/compose.yml b/compose.yml index d1bdafd..de47008 100644 --- a/compose.yml +++ b/compose.yml @@ -14,12 +14,17 @@ services: - secret_key - smtp_passwd environment: + - GITEA_ALLOW_ONLY_EXTERNAL_REGISTRATION="true" - GITEA_APP_NAME="Git with solidaritea" - GITEA_DB_HOST="mariadb:3306" - GITEA_DB_NAME="gitea" - GITEA_DB_TYPE="mysql" - GITEA_DB_USER="gitea" + - GITEA_DISABLE_REGISTRATION="false" - GITEA_DOMAIN="git.autonomic.zone" + - GITEA_ENABLE_NOTIFY_MAIL="true" + - GITEA_ENABLE_OPENID_SIGNIN="true" + - GITEA_ENABLE_OPENID_SIGNUP="true" - GITEA_SSH_PORT="2222" volumes: - "git:/data" @@ -68,7 +73,7 @@ networks: configs: app_ini: - name: gitea_app_ini_v1 + name: gitea_app_ini_v2 file: app.ini.tmpl template_driver: golang