initial commit
This commit is contained in:
11
roles/monitoring/templates/nginx/alertmanager.conf.j2
Normal file
11
roles/monitoring/templates/nginx/alertmanager.conf.j2
Normal file
@@ -0,0 +1,11 @@
|
||||
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 }}/;
|
||||
}
|
||||
5
roles/monitoring/templates/nginx/grafana.conf.j2
Normal file
5
roles/monitoring/templates/nginx/grafana.conf.j2
Normal file
@@ -0,0 +1,5 @@
|
||||
{{ ansible_managed | comment }}
|
||||
|
||||
location {{ grafana_web_path }}/ {
|
||||
proxy_pass http://localhost:{{ grafana_port }}/;
|
||||
}
|
||||
11
roles/monitoring/templates/nginx/prometheus.conf.j2
Normal file
11
roles/monitoring/templates/nginx/prometheus.conf.j2
Normal file
@@ -0,0 +1,11 @@
|
||||
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 }}/;
|
||||
}
|
||||
Reference in New Issue
Block a user