aboutsummaryrefslogtreecommitdiff
path: root/roles/gitea
diff options
context:
space:
mode:
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 }}
+