From 89007ddb4f2b59c15ea773f877cf75c5e9ac714d Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sun, 26 Mar 2023 21:50:41 +0200 Subject: gitea new options --- roles/gitea/defaults/main.yml | 2 ++ roles/gitea/templates/app.ini.j2 | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'roles/gitea') diff --git a/roles/gitea/defaults/main.yml b/roles/gitea/defaults/main.yml index 5250013..524cf43 100644 --- a/roles/gitea/defaults/main.yml +++ b/roles/gitea/defaults/main.yml @@ -2,6 +2,8 @@ gitea: root_url: 'https://gitea.example.com' name: 'Gitea: Git with a cup of tea' webhook_allowed_hosts: '*' + require_signing_view: true + actions: false ssl: cert: '/etc/ssl/certs/ssl-cert-snakeoil.pem' key: '/etc/ssl/private/ssl-cert-snakeoil.key' diff --git a/roles/gitea/templates/app.ini.j2 b/roles/gitea/templates/app.ini.j2 index e3dd930..3be53b0 100644 --- a/roles/gitea/templates/app.ini.j2 +++ b/roles/gitea/templates/app.ini.j2 @@ -44,7 +44,7 @@ INTERNAL_TOKEN = {{ int_tok.content }} [service] DISABLE_REGISTRATION = true -REQUIRE_SIGNIN_VIEW = true +REQUIRE_SIGNIN_VIEW = {{ gitea.require_signing_view }} ENABLE_NOTIFY_MAIL = {{ gitea.mail.enable }} @@ -79,3 +79,7 @@ PATH = [oauth2] ENABLE = false + +[actions] +ENABLED = {{ gitea.actions }} + -- cgit v1.2.3