Files
ansible/roles/nginx/templates/vhosts/btf.mateu.be.conf.j2
2024-07-05 11:53:39 +02:00

15 lines
354 B
Django/Jinja

{% set allowed_ips=['10.233.212.64/27', '163.172.112.19', '2a01:e0a:9bd:2811::/64', '2a01:e0a:9bd:2810::/64', '130.180.219.188', '2a01:e0a:fc:ebc0::/64'] -%}
server {
{% include './templates/header.conf.j2' %}
location / {
root /net/;
autoindex on;
{% for allowed_ip in allowed_ips -%}
allow {{ allowed_ip }};
{% endfor -%}
deny all;
}
}