make index files into an implementation detail

This commit is contained in:
Daniel Micay 2021-06-02 20:57:01 -04:00
parent 81fa2a6f23
commit 5262ad4ee7

View File

@ -137,10 +137,6 @@ http {
return 301 $1/$2;
}
if ($request_uri ~ ^(.*)/index$) {
return 301 $1/;
}
# https://www.twipu.com/GrapheneOS doesn't handle links with fragments properly
if ($request_uri ~ "^/(.*)%3Ca%20href=$") {
return 301 /$1;
@ -289,7 +285,7 @@ http {
add_header Cache-Control "public, max-age=1800";
}
location ~ "\.(br|gz|html)$" {
location ~ "(/index|\.(br|gz|html))$" {
internal;
}