Files
alex ca0074dcad
Build and Publish Docker Image / build (push) Successful in 33s
init
2026-07-28 02:09:46 -04:00

25 lines
591 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# Cache hashed static assets aggressively.
location /assets/ {
expires 1y;
add_header Cache-Control "public, immutable";
try_files $uri =404;
}
# Client-side routing: fall back to index.html for unknown paths.
location / {
try_files $uri $uri/ /index.html;
}
# Basic gzip for text assets.
gzip on;
gzip_types text/plain text/css application/javascript application/json image/svg+xml;
gzip_min_length 1024;
}