diff options
author | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-04-26 18:40:49 +0200 |
---|---|---|
committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-04-26 18:40:49 +0200 |
commit | b35a3a8333dd35ec378f4fdb899d2352c1f2d595 (patch) | |
tree | cc8ac193cc46636696596a477b71a561f3668b0d | |
parent | cff96eb47a3ca45787c18ed2ba43242eeeae7b99 (diff) | |
download | infra-b35a3a8333dd35ec378f4fdb899d2352c1f2d595.tar.gz infra-b35a3a8333dd35ec378f4fdb899d2352c1f2d595.tar.bz2 infra-b35a3a8333dd35ec378f4fdb899d2352c1f2d595.zip |
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.
-rw-r--r-- | roles/cgit/files/cgit.conf | 5 |
1 files changed, 5 insertions, 0 deletions
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 { |