summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-01-13 23:50:18 +0100
committerChristian Pointner <equinox@spreadspace.org>2024-01-13 23:50:18 +0100
commit68b3bea27570e5e301dd73eb7e58bd2ac11e8225 (patch)
treeb34e06ff5ce9f37446cd9742f73bca49a22c8657 /roles
parentupdate grafana dashboard for node-exporter (diff)
cgit: fix nginx vhost config to make robots.txt visible
Diffstat (limited to 'roles')
-rw-r--r--roles/gitolite/http/tasks/nginx-vhost.yml4
-rw-r--r--roles/gitolite/http/templates/cgitrc.j24
2 files changed, 4 insertions, 4 deletions
diff --git a/roles/gitolite/http/tasks/nginx-vhost.yml b/roles/gitolite/http/tasks/nginx-vhost.yml
index 6b7d2bd0..706f5655 100644
--- a/roles/gitolite/http/tasks/nginx-vhost.yml
+++ b/roles/gitolite/http/tasks/nginx-vhost.yml
@@ -4,8 +4,8 @@
nginx_locations_base:
'= /':
return: "303 /cgit/"
- '/cgit-css/':
- alias: "/usr/share/cgit/"
+ '/':
+ root: "/usr/share/cgit/"
nginx_locations_logo: {}
nginx_locations_main:
'/cgit/':
diff --git a/roles/gitolite/http/templates/cgitrc.j2 b/roles/gitolite/http/templates/cgitrc.j2
index 131042d2..1109f6c4 100644
--- a/roles/gitolite/http/templates/cgitrc.j2
+++ b/roles/gitolite/http/templates/cgitrc.j2
@@ -1,10 +1,10 @@
## {{ ansible_managed }}
-css=/cgit-css/cgit.css
+css=/cgit.css
{% if 'logo' in item.value.http %}
logo=/logo.png
{% else %}
-logo=/cgit-css/cgit.png
+logo=/cgit.png
{% endif %}
{% if 'title' in item.value.http %}
root-title={{ item.value.http.title }}