b3964df9b2
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.
24 lines
599 B
Nginx Configuration File
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";
|
|
}
|
|
}
|