12 lines
370 B
Django/Jinja
12 lines
370 B
Django/Jinja
location {{ prometheus_web_path }}/ {
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $http_host;
|
|
proxy_redirect off;
|
|
|
|
auth_basic "Authentication required";
|
|
auth_basic_user_file /etc/nginx/.htpasswd-prometheus;
|
|
|
|
proxy_pass http://localhost:{{ prometheus_port }}/;
|
|
}
|