16 lines
476 B
Django/Jinja
16 lines
476 B
Django/Jinja
{% set allowed_ips=['10.233.212.64/27', '2a01:e0a:9bd:2811::/64', '2a01:e0a:9bd:2810::/64', '2a01:e0a:fc:ebc0::/64', '2a01:cb00:8a0a:b700::/64', '2a01:e0a:d19:ef90::/64', '2001:910:13c8::/48', '2a01:e0a:bde:d350::/64', '2a01:cb00:f55:2d00::/64'] -%}
|
|
server {
|
|
{% include './templates/header.conf.j2' %}
|
|
|
|
location / {
|
|
root /net/;
|
|
fancyindex on;
|
|
fancyindex_exact_size off;
|
|
{% for allowed_ip in allowed_ips -%}
|
|
allow {{ allowed_ip }};
|
|
{% endfor -%}
|
|
deny all;
|
|
}
|
|
}
|
|
|