diff --git a/nginx.conf b/nginx.conf index 1adb02b5f..6e980b238 100644 --- a/nginx.conf +++ b/nginx.conf @@ -69,10 +69,15 @@ http { ssl_certificate /etc/nginx/ssl/dummy.crt; ssl_certificate_key /etc/nginx/ssl/dummy.key; + location ~* .(txt|webmanifest|css|js|mjs|map|svg|jpg|jpeg|png|ico|ttf|woff|woff2|wav)$ { + root /usr/share/nginx/html; + try_files $uri $uri/ =404; + } + location / { root /usr/share/nginx/html; - try_files $uri $uri/ /; - index index.html index.htm; + try_files $uri $uri/ /index.html; + index index.html; } error_page 500 502 503 504 /50x.html;