From fc7b57eab9dc77422f8213867ef045397f199063 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 21 May 2020 17:58:38 +0100 Subject: [PATCH] Modify some things and cleanup gitea config --- .../intersect-docker/files/gitea/app.ini | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/ansible/roles/intersect-docker/files/gitea/app.ini b/ansible/roles/intersect-docker/files/gitea/app.ini index c51911a..728bcc5 100644 --- a/ansible/roles/intersect-docker/files/gitea/app.ini +++ b/ansible/roles/intersect-docker/files/gitea/app.ini @@ -1,4 +1,4 @@ -APP_NAME = Gitea: Git with a cup of tea +APP_NAME = Gitea RUN_MODE = prod RUN_USER = git @@ -29,6 +29,7 @@ LANDING_PAGE = explore ENABLE_GZIP = true [ui] +EXPLORE_PAGING_NUM = 1000 DEFAULT_THEME = arc-green THEMES = gitea,arc-green @@ -49,6 +50,7 @@ ISSUE_INDEXER_PATH = /data/gitea/indexers/issues.bleve PROVIDER_CONFIG = /data/gitea/sessions PROVIDER = file COOKIE_NAME = session +COOKIE_SECURE = true [picture] AVATAR_UPLOAD_PATH = /data/gitea/avatars @@ -60,9 +62,8 @@ ENABLE_FEDERATED_AVATAR = true PATH = /data/gitea/attachments [log] -ROOT_PATH = /data/gitea/log -MODE = file LEVEL = info +ACCESS = console [security] INSTALL_LOCK = true @@ -70,17 +71,10 @@ SECRET_KEY = {{ gitea.secret_key }} INTERNAL_TOKEN = {{ gitea.internal_token }} COOKIE_USERNAME = gitea_username COOKIE_REMEMBER_NAME = gitea_remember +LOGIN_REMEMBER_DAYS = 28 [service] DISABLE_REGISTRATION = true -REQUIRE_SIGNIN_VIEW = false -REGISTER_EMAIL_CONFIRM = false -ENABLE_NOTIFY_MAIL = false -ALLOW_ONLY_EXTERNAL_REGISTRATION = false -ENABLE_CAPTCHA = false -DEFAULT_KEEP_EMAIL_PRIVATE = false -DEFAULT_ALLOW_CREATE_ORGANIZATION = true -DEFAULT_ENABLE_TIMETRACKING = true NO_REPLY_ADDRESS = noreply.example.org [oauth2] @@ -96,3 +90,6 @@ ENABLE_OPENID_SIGNUP = false [cache] ADAPTER = memory INTERVAL = 60 + +[cron] +RUN_AT_START = true