nginx: Updated config
All checks were successful
Build Docker for Release / Build Container ARM (push) Successful in 24s
Build Docker for Release / Build Container AMD (push) Successful in 26s

This commit is contained in:
Nathan Woodburn 2023-09-11 22:00:23 +10:00
parent e4e831d4bd
commit c9852f487c
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -1,14 +1,13 @@
server { server {
listen 80; listen 80;
index index.html; index index.html;
root /usr/share/nginx/html; root /usr/share/nginx/html;
location / { location / {
try_files $uri $uri/ /index.html; if ($request_uri ~ ^/(.*)\.html) {
} return 302 /$1;
}
location ~ \.html$ { try_files $uri $uri.html $uri/ =404;
try_files $uri =404;
} }
} }