From b35a3a8333dd35ec378f4fdb899d2352c1f2d595 Mon Sep 17 00:00:00 2001 From: Dmitry Ilvokhin Date: Fri, 26 Apr 2024 18:40:49 +0200 Subject: Remove favicon from cgit We set root to /usr/share/webapps/cgit for cgit location. This directory contains favicon which served automatically. One way to stop it is to remove favicon, but every package update will bring it back in. So I just hardcoded into nginx config return code of 404 for favicon request to do not serve it. --- roles/cgit/files/cgit.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/cgit/files/cgit.conf b/roles/cgit/files/cgit.conf index 8906062..ffa1fba 100644 --- a/roles/cgit/files/cgit.conf +++ b/roles/cgit/files/cgit.conf @@ -1,6 +1,11 @@ # Source: https://wiki.archlinux.org/title/cgit root /usr/share/webapps/cgit; + +location = /favicon.ico { + return 404; +} + try_files $uri @cgit; location @cgit { -- cgit v1.2.3-70-g09d2