config: use formatting that Gitea wants

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2024-08-01 20:25:06 +02:00
parent 03111e3164
commit 89acb00bfb
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
1 changed files with 19 additions and 18 deletions

View File

@ -1,5 +1,6 @@
APP_NAME = {{ gitea_app_name | mandatory }} APP_NAME = {{ gitea_app_name | mandatory }}
RUN_MODE = prod RUN_MODE = prod
WORK_PATH = /data/gitea
[repository] [repository]
ROOT = /data/git/repositories ROOT = /data/git/repositories
@ -12,25 +13,25 @@ LOCAL_COPY_PATH = /data/gitea/tmp/local-repo
TEMP_PATH = /data/gitea/uploads TEMP_PATH = /data/gitea/uploads
[server] [server]
APP_DATA_PATH = /data/gitea APP_DATA_PATH = /data/gitea
DOMAIN = {{ gitea_app_web_domain | mandatory }} DOMAIN = {{ gitea_app_web_domain | mandatory }}
SSH_DOMAIN = {{ gitea_app_ssh_domain | mandatory }} SSH_DOMAIN = {{ gitea_app_ssh_domain | mandatory }}
HTTP_PORT = {{ gitea_app_cont_web_port }} HTTP_PORT = {{ gitea_app_cont_web_port }}
ROOT_URL = https://{{ gitea_app_web_domain | mandatory }} ROOT_URL = https://{{ gitea_app_web_domain | mandatory }}
DISABLE_SSH = false DISABLE_SSH = false
SSH_PORT = {{ gitea_app_ssh_port }} SSH_PORT = {{ gitea_app_ssh_port }}
LFS_START_SERVER = false LFS_START_SERVER = false
LANDING_PAGE = explore LANDING_PAGE = explore
[lfs] [lfs]
PATH = /data/git/lfs PATH = /data/git/lfs
[database] [database]
DB_TYPE = postgres DB_TYPE = postgres
HOST = db:{{ gitea_db_cont_port }} HOST = db:{{ gitea_db_cont_port }}
NAME = {{ gitea_db_name }} NAME = {{ gitea_db_name }}
USER = {{ gitea_db_user }} USER = {{ gitea_db_user }}
PASSWD = {{ gitea_db_pass }} PASSWD = {{ gitea_db_pass }}
LOG_SQL = false LOG_SQL = false
[indexer] [indexer]
@ -48,14 +49,14 @@ DEFAULT_THEME = arc-green
ENABLE_SWAGGER = true ENABLE_SWAGGER = true
[picture] [picture]
AVATAR_UPLOAD_PATH = /data/gitea/avatars AVATAR_UPLOAD_PATH = /data/gitea/avatars
REPOSITORY_AVATAR_UPLOAD_PATH = /data/gitea/repo-avatars REPOSITORY_AVATAR_UPLOAD_PATH = /data/gitea/repo-avatars
[attachment] [attachment]
PATH = /data/gitea/attachments PATH = /data/gitea/attachments
[log] [log]
MODE = console MODE = console
LEVEL = {{ gitea_app_log_level }} LEVEL = {{ gitea_app_log_level }}
logger.router.MODE = console logger.router.MODE = console
@ -63,21 +64,21 @@ logger.router.MODE = console
COLORIZE = false COLORIZE = false
[security] [security]
INSTALL_LOCK = {{ gitea_app_install_lock }} INSTALL_LOCK = {{ gitea_app_install_lock }}
SECRET_KEY = {{ gitea_app_secret_key | mandatory }} SECRET_KEY = {{ gitea_app_secret_key | mandatory }}
INTERNAL_TOKEN = {{ gitea_app_security_token | mandatory }} INTERNAL_TOKEN = {{ gitea_app_security_token | mandatory }}
# Accept X-Forwarded-For headers # Accept X-Forwarded-For headers
REVERSE_PROXY_TRUSTED_PROXIES = * REVERSE_PROXY_TRUSTED_PROXIES = *
[service] [service]
DISABLE_REGISTRATION = {{ gitea_app_disable_registration }} DISABLE_REGISTRATION = {{ gitea_app_disable_registration }}
REQUIRE_SIGNIN_VIEW = false REQUIRE_SIGNIN_VIEW = false
[oauth2] [oauth2]
JWT_SECRET = {{ gitea_app_jwt_secret | mandatory }} JWT_SECRET = {{ gitea_app_jwt_secret | mandatory }}
[packages] [packages]
ENABLED=true ENABLED = true
[cron.delete_repo_archives] [cron.delete_repo_archives]
ENABLED = true ENABLED = true