ansible-infra/roles/monitoring/templates/nginx/alertmanager.conf.j2

12 lines
394 B
Plaintext
Raw Normal View History

2020-04-13 14:46:45 +02:00
location {{ alertmanager_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 for Alert Manager";
auth_basic_user_file /etc/nginx/.htpasswd-alertmanager;
proxy_pass http://localhost:{{ alertmanager_port }}/;
}