update nginx conf

This commit is contained in:
2026-06-22 22:05:28 +07:00
parent d40815b858
commit 277eabe7a8
+2 -12
View File
@@ -4,15 +4,6 @@ server {
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html; index index.html;
location = / {
return 301 /homepage;
}
location /_next/static/ {
expires 365d;
add_header Cache-Control "public, immutable";
}
location /assets/ { location /assets/ {
expires 30d; expires 30d;
add_header Cache-Control "public"; add_header Cache-Control "public";
@@ -30,9 +21,8 @@ server {
} }
location / { location / {
try_files $uri $uri.html $uri/index.html =404; try_files $uri $uri/ /index.html;
} }
error_page 404 /404.html; error_page 404 /index.html;
} }