nasg/templates/nginx.j2.conf

25 lines
388 B
Text
Raw Normal View History

2019-08-12 10:49:51 +01:00
{% for location in gones %}
location /{{ location }} {
return 410;
}
{% endfor %}
{% for location in gones_re %}
location ~ {{ location }} {
return 410;
}
{% endfor %}
{% for from, to in redirects.items() %}
location /{{ from }} {
return 301 {{ to }};
}
{% endfor %}
{% for source, target in rewrites.items() %}
rewrite {{ source }} {{ target}} permanent;
2019-08-12 10:49:51 +01:00
{% endfor %}