Skip to content

Commit 53f7be0

Browse files
committed
Fix grafana api auth (add comments)
1 parent aa9a292 commit 53f7be0

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

grafana.subdomain.conf.sample

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2023/04/14
1+
## Version 2023/04/20
22
# make sure that your grafana container is named grafana
33
# make sure that your dns has a cname set for grafana
44

@@ -55,5 +55,8 @@ server {
5555
set $upstream_proto http;
5656
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
5757

58+
# Clear Authorization Header if you are using http auth and normal Grafana auth
59+
#proxy_set_header Authorization "";
60+
5861
}
5962
}

grafana.subfolder.conf.sample

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2023/04/14
1+
## Version 2023/04/20
22
# make sure that your grafana container is named grafana
33
# make sure that grafana is set to work with the base url /grafana/
44
# grafana requires environment variables set thus:
@@ -22,10 +22,10 @@ location ^~ /grafana/ {
2222

2323
include /config/nginx/proxy.conf;
2424
include /config/nginx/resolver.conf;
25-
set $upstream_grafana grafana;
25+
set $upstream_app grafana;
2626
set $upstream_port 3000;
2727
set $upstream_proto http;
28-
proxy_pass http://$upstream_grafana:$upstream_port ;
28+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
2929

3030
# Clear Authorization Header if you are using http auth and normal Grafana auth
3131
#proxy_set_header Authorization "";
@@ -37,10 +37,10 @@ location ^~ /grafana/ {
3737
location ^~ /grafana/api {
3838
include /config/nginx/proxy.conf;
3939
include /config/nginx/resolver.conf;
40-
set $upstream_grafana grafana;
40+
set $upstream_app grafana;
4141
set $upstream_port 3000;
4242
set $upstream_proto http;
43-
proxy_pass http://$upstream_grafana:$upstream_port ;
43+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
4444

4545
# Clear Authorization Header if you are using http auth and normal Grafana auth
4646
#proxy_set_header Authorization "";

0 commit comments

Comments
 (0)