2023-12-18 20:21:08 +00:00
|
|
|
server {
|
|
|
|
listen 4173;
|
|
|
|
|
2023-12-18 20:47:46 +00:00
|
|
|
root /app/public;
|
2023-12-18 20:21:08 +00:00
|
|
|
|
|
|
|
location /app {
|
|
|
|
try_files $uri $uri/ =404;
|
|
|
|
|
|
|
|
# Cache settings for static content
|
|
|
|
expires 7d; # Cache static content for 7 days
|
|
|
|
add_header Cache-Control "public, max-age=604800, immutable";
|
|
|
|
}
|
|
|
|
|
|
|
|
error_page 404 /index.html;
|
|
|
|
error_page 500 502 503 504 /index.html;
|
|
|
|
}
|