This commit is contained in:
backuppc
2026-01-21 13:42:32 +09:00
parent 4afbb1c299
commit c1312c99ce
3 changed files with 47 additions and 7 deletions

22
nginx.conf Normal file
View File

@@ -0,0 +1,22 @@
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
# Gzip settings for better performance
gzip on;
gzip_min_length 1000;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
location / {
try_files $uri $uri/ /index.html;
}
# Handle assets correctly to avoid fallback to index.html for missing files
location /assets/ {
try_files $uri =404;
}
}