๐Ÿ“— Ansible playbooks and roles for building an idempotent, interconnected and scalable infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible-playbooks/roles/blocky/templates/nginx_server.j2

17 lines
280 B

2 years ago
location / {
return 404;
}
location /dns-query {
proxy_pass http://127.0.0.1:{{ blocky_port }};
proxy_set_header Connection "";
}
{% if host_metrics -%}
location /metrics {
proxy_pass http://127.0.0.1:{{ blocky_port }};
allow {{ int_net }};
deny all;
}
{%- endif %}