From aa754936773ead0a0f2729ad140814f9e262cffb Mon Sep 17 00:00:00 2001 From: Simeon Keske Date: Sat, 5 Dec 2020 21:10:23 +0100 Subject: [PATCH] add option to specify extra configuration --- README.md | 1 + defaults/main.yml | 2 ++ templates/gitea.ini.j2 | 1 + 3 files changed, 4 insertions(+) diff --git a/README.md b/README.md index c03e08f..909d1b6 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,7 @@ The following code has been tested with Debian 8, it should work on Ubuntu as we * `gitea_home`: Base directory to work * `gitea_dl_url`: The URL, the compiled gitea-binary will be downloaded from * `gitea_systemd_cap_net_bind_service`: Adds `AmbientCapabilities=CAP_NET_BIND_SERVICE` to systemd service file +* `gitea_extra_config`: Additional configuration ### Look and feel diff --git a/defaults/main.yml b/defaults/main.yml index e026562..7b4abfe 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -80,3 +80,5 @@ gitea_repo_indexer_include: "" gitea_repo_indexer_exclude: "" gitea_repo_exclude_vendored: true gitea_repo_indexer_max_file_size: 1048576 + +gitea_extra_config: "" diff --git a/templates/gitea.ini.j2 b/templates/gitea.ini.j2 index 080f93d..22d8c50 100644 --- a/templates/gitea.ini.j2 +++ b/templates/gitea.ini.j2 @@ -194,3 +194,4 @@ JWT_SECRET = {{ gitea_oauth2_jwt_secret }} ENABLED = {{ gitea_metrics_enabled }} TOKEN = {{ gitea_metrics_token }} +{{ gitea_extra_config }}