nasg/templates/nginx.j2.conf
Peter Molnar 70a775b6d5 - redirects and gones are now rendered
- xmlrpc link removed because spam
- minor template cleanups
- incmonig webmention logging improvements
2019-10-19 10:05:54 +01:00

24 lines
388 B
Text

{% 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;
{% endfor %}