aboutsummaryrefslogtreecommitdiffstats
path: root/roles/cgit/templates
diff options
context:
space:
mode:
Diffstat (limited to 'roles/cgit/templates')
-rw-r--r--roles/cgit/templates/etc-httpd.d-cgit.conf.j2 (renamed from roles/cgit/templates/cgit.httpd.conf.j2)3
-rw-r--r--roles/cgit/templates/var-www-conf-cgitrc.j2 (renamed from roles/cgit/templates/cgitrc.j2)10
2 files changed, 8 insertions, 5 deletions
diff --git a/roles/cgit/templates/cgit.httpd.conf.j2 b/roles/cgit/templates/etc-httpd.d-cgit.conf.j2
index a8b4707..6fb8e98 100644
--- a/roles/cgit/templates/cgit.httpd.conf.j2
+++ b/roles/cgit/templates/etc-httpd.d-cgit.conf.j2
@@ -5,6 +5,9 @@
ext_ip="0.0.0.0"
server "cgit" {
listen on $ext_ip port {{ cgit_port }}
+{% if cgit_authenticate %}
+ authenticate "realm" with "/htpasswd/cgit"
+{% endif %}
# serve cgit static files directly: cgit.css and cgit.png
location "/cgit.*" {
diff --git a/roles/cgit/templates/cgitrc.j2 b/roles/cgit/templates/var-www-conf-cgitrc.j2
index 5779255..8be36ce 100644
--- a/roles/cgit/templates/cgitrc.j2
+++ b/roles/cgit/templates/var-www-conf-cgitrc.j2
@@ -3,9 +3,9 @@
# managed by Ansible
# visuals
-css={{ cgit_config_css }}
-logo={{ cgit_config_logo }}
-favicon={{ cgit_config_favicon }}
+css={{ cgit__css }}
+logo={{ cgit__logo }}
+favicon={{ cgit__favicon }}
# readme
readme=:README.md
@@ -27,8 +27,8 @@ clone-url=git://git.{{ global.domain_name }}/$CGIT_REPO_URL ssh://git@git.{{ glo
# instance id
root-title=git.{{ global.domain_name }}
-root-desc={{ cgit_config_root_desc }}
-root-readme={{ cgit_config_root_readme }}
+root-desc={{ cgit__root_desc }}
+root-readme={{ cgit__root_readme }}
# archives
snapshots=tar.gz
remember that computers suck.