From cf280fd9b0bd0bf63abb86739d1dced63a747199 Mon Sep 17 00:00:00 2001 From: Georg Date: Mon, 13 Sep 2021 09:15:10 +0200 Subject: Gitea configuration update Signed-off-by: Georg --- Gitea/app.ini | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/Gitea/app.ini b/Gitea/app.ini index c082159..69084ef 100644 --- a/Gitea/app.ini +++ b/Gitea/app.ini @@ -36,6 +36,10 @@ SSL_MODE = disable CHARSET = utf8 PATH = /var/lib/gitea/data/gitea.db +[queue] +TYPE = redis +CONN_STR = redis://127.0.0.1:6378/0 + [repository] ROOT = /var/lib/git/gitea-repositories @@ -48,11 +52,16 @@ IS_TLS_ENABLED = true USER = $SMTPUSER PASSWD = $SMTPPASS +[cache] +ENABLED = true +ADAPTER = redis +HOST = redis://127.0.0.1:6378/1?pool_size=100&idle_timeout=180s + [service] -REGISTER_EMAIL_CONFIRM = true +REGISTER_EMAIL_CONFIRM = false ENABLE_NOTIFY_MAIL = true DISABLE_REGISTRATION = false -ALLOW_ONLY_EXTERNAL_REGISTRATION = false +ALLOW_ONLY_EXTERNAL_REGISTRATION = true ENABLE_CAPTCHA = false REQUIRE_SIGNIN_VIEW = false DEFAULT_KEEP_EMAIL_PRIVATE = false @@ -67,13 +76,16 @@ ENABLE_FEDERATED_AVATAR = false [openid] ENABLE_OPENID_SIGNIN = false ENABLE_OPENID_SIGNUP = false +WHITELISTED_URIS = https:\/\/auth.syscid.com\/* [session] -PROVIDER = file +PROVIDER = redis +PROVIDER_CONFIG = redis://127.0.0.1:6378/2?pool_size=100&idle_timeout=180s +COOKIE_NAME = libertacasa_git [log] MODE = file -LEVEL = info +LEVEL = warn ROOT_PATH = /var/log/gitea/ [metrics] -- cgit v1.2.3