From ea8e732cb354a8bb2e1cd111ac46e14f3f821df3 Mon Sep 17 00:00:00 2001 From: Nik Afiq Date: Sat, 24 Jan 2026 20:42:29 +0900 Subject: [PATCH] Add favicon handling and enhance Dashy proxy logging --- nik4nao.home.arpa.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nik4nao.home.arpa.conf b/nik4nao.home.arpa.conf index 429fa99..facf504 100644 --- a/nik4nao.home.arpa.conf +++ b/nik4nao.home.arpa.conf @@ -20,6 +20,15 @@ server { location = /pihole { return 302 /admin/; } + + # ---- favicon (avoid noisy 404 in browser) ---- + # Put a favicon.ico in /var/www/html if you want a real icon. + location = /favicon.ico { + root /var/www/html; + access_log off; + try_files /favicon.ico =404; + } + location /pihole/ { return 301 /admin/; } @@ -147,6 +156,9 @@ server { proxy_pass http://127.0.0.1:8084/; include snippets/proxy-common.conf; + add_header X-Dashy-Proxy 1 always; + access_log /var/log/nginx/dashy_access.log; + proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Prefix /dashy;