2020-07-10 00:58:55 +02:00
|
|
|
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
|
2021-08-19 09:55:49 +02:00
|
|
|
{%- from "nginx/map.jinja" import net with context %}
|
2023-03-10 00:05:57 +01:00
|
|
|
|
2022-10-10 10:19:42 +02:00
|
|
|
geo $allow {
|
2023-03-10 00:05:57 +01:00
|
|
|
proxy ::1/128;
|
|
|
|
proxy 127.0.0.1/32;
|
|
|
|
proxy 192.168.0.0/16;
|
|
|
|
|
|
|
|
{%- for network in net.ip_networks %}
|
|
|
|
{{ network }} true;
|
2022-10-10 10:19:42 +02:00
|
|
|
{%- endfor %}
|
2023-03-10 00:05:57 +01:00
|
|
|
|
|
|
|
default false;
|
|
|
|
}
|