all repos — nasg @ master

templates/nginx.j2.conf (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
{% 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 %}