From 68b3bea27570e5e301dd73eb7e58bd2ac11e8225 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 13 Jan 2024 23:50:18 +0100 Subject: cgit: fix nginx vhost config to make robots.txt visible --- roles/gitolite/http/tasks/nginx-vhost.yml | 4 ++-- roles/gitolite/http/templates/cgitrc.j2 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'roles') 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 }} -- cgit v1.2.3