Add favicon handling and enhance Dashy proxy logging
This commit is contained in:
parent
04b1c130a6
commit
ea8e732cb3
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user