mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2026-02-04 00:24:29 +08:00
Handle Nginx http auth + grafana auth separately
Went down a rabbit hole because I had my "admin" type directory protected by http auth, but the individual apps have their own user auth. The passed authorization header was causing problems with Grafana.
This commit is contained in:
parent
77a6dee131
commit
0a028041ef
@ -22,6 +22,10 @@ location ^~ /grafana/ {
|
||||
set $upstream_port 3000;
|
||||
set $upstream_proto http;
|
||||
proxy_pass http://$upstream_grafana:$upstream_port ;
|
||||
|
||||
# Clear Authorization Header if you are using http auth and normal Grafana auth
|
||||
#proxy_set_header Authorization "";
|
||||
|
||||
rewrite ^/grafana/(.*)$ /$1 break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user