forked from bitlair/ansible
WIP: generiek nginx role
This commit is contained in:
parent
ea3b17ef2d
commit
8df1cba71c
14 changed files with 278 additions and 15 deletions
13
snippets/prometheus-nginx.j2
Normal file
13
snippets/prometheus-nginx.j2
Normal file
|
@ -0,0 +1,13 @@
|
|||
# dashboard nginx config snippet
|
||||
|
||||
location /prometheus/ {
|
||||
proxy_pass http://localhost:9090/prometheus/;
|
||||
include proxy_params;
|
||||
|
||||
{% for host in bitlair_ip_whitelist %}
|
||||
allow {{ host }};
|
||||
{% endif %}
|
||||
allow "127.0.0.0/8"
|
||||
allow "::1";
|
||||
deny all;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue