18 lines
559 B
Django/Jinja
18 lines
559 B
Django/Jinja
location = http{{ 's' if config.https else '' }}://{{ config.site }}/robots.txt {
|
|
allow all;
|
|
log_not_found off;
|
|
access_log off;
|
|
}
|
|
|
|
location = http{{ 's' if config.https else '' }}://{{ config.site }}/{{ config.path.output }}/ {
|
|
index index.html
|
|
}
|
|
|
|
location ~* http{{ 's' if config.https else '' }}://{{ config.site }}/{{ config.path.output }}/(.*)/ {
|
|
if ($request_uri ~ ^/(.*)\.html) {
|
|
return 302 http{{ 's' if config.https else '' }}://{{ config.site }}/{{ config.path.output }}/$1/;
|
|
}
|
|
try_files $uri $uri.html $uri/ =404;
|
|
}
|
|
}
|