aboutsummaryrefslogtreecommitdiff
path: root/roles/gitea
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2023-03-26 21:50:41 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2023-03-26 21:50:41 +0200
commit89007ddb4f2b59c15ea773f877cf75c5e9ac714d (patch)
tree3afe8a448bb3491670f5842b51a3defeeee19061 /roles/gitea
parent4663ced9b61a9b4c2259a86c147f0be9ceadcca4 (diff)
downloadansible_collection-89007ddb4f2b59c15ea773f877cf75c5e9ac714d.tar.gz
gitea new options
Diffstat (limited to 'roles/gitea')
-rw-r--r--roles/gitea/defaults/main.yml2
-rw-r--r--roles/gitea/templates/app.ini.j26
2 files changed, 7 insertions, 1 deletions
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 }}
+