mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Fix auth for Nginx in Mimir Backend block (devenv) (#79404)
This commit is contained in:
parent
cc3c0a2cc2
commit
117ecf0403
@ -5,9 +5,15 @@ events {}
|
|||||||
http {
|
http {
|
||||||
resolver 127.0.0.11 ipv6=off;
|
resolver 127.0.0.11 ipv6=off;
|
||||||
|
|
||||||
|
# Use basic auth user in `X-Scope-OrgID` if the header is not already set.
|
||||||
|
map $http_x_scope_orgid $add_x_scope_orgid {
|
||||||
|
default $http_x_scope_orgid;
|
||||||
|
"" $remote_user;
|
||||||
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 8080;
|
listen 8080;
|
||||||
proxy_set_header X-Scope-OrgID $http_x_scope_orgid;
|
proxy_set_header X-Scope-OrgID $add_x_scope_orgid;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
auth_basic "Mimir Backend";
|
auth_basic "Mimir Backend";
|
||||||
|
Loading…
Reference in New Issue
Block a user