Files
clement-saillant-cc/nginx.conf
T
L'électron rare b3964df9b2 build: add nginx docker image and compose
Dockerfile implements multi-stage build: node:22-alpine for build
stage, nginx:1.27-alpine for production runtime. nginx.conf provides
SPA routing with gzip compression and cache headers. docker-compose.yml
prepared for Tower Traefik integration with external network and Host
route. All files match specification verbatim.
2026-07-09 12:22:42 +02:00

24 lines
599 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
gzip on;
gzip_types text/css application/javascript application/wasm image/svg+xml;
add_header X-Content-Type-Options nosniff;
add_header Referrer-Policy no-referrer-when-downgrade;
location /assets/ {
add_header Cache-Control "public, max-age=31536000, immutable";
}
location /music/ {
add_header Cache-Control "public, max-age=86400";
}
location / {
try_files $uri $uri/ /index.html;
add_header Cache-Control "no-cache";
}
}