mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-05 20:41:32 -07: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
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue