Фикс 404 при обновелнии страницы

This commit is contained in:
2026-07-31 06:30:45 -07:00
parent 7af3c46bfe
commit aea0b94598
3 changed files with 58 additions and 36 deletions

18
nginx.conf Normal file
View File

@@ -0,0 +1,18 @@
server {
listen 80;
listen [::]:80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location /assets/ {
try_files $uri =404;
expires 1y;
add_header Cache-Control "public, immutable";
}
location / {
try_files $uri $uri/ /index.html;
}
}