Files
dujiao-next/frontend/user/nginx.conf
T
dujiao-next 73e6364a1e chore: merge user repository into frontend/user
git-subtree-dir: frontend/user
git-subtree-mainline: c9f1d4dda4
git-subtree-split: f63dc12830
2026-07-26 15:06:53 +08:00

27 lines
548 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location ^~ /assets/ {
try_files $uri =404;
add_header Cache-Control "public, max-age=31536000, immutable" always;
}
location = /index.html {
add_header Cache-Control "no-store, no-cache, must-revalidate" always;
}
location / {
try_files $uri $uri/ /index.html;
}
location = /health {
access_log off;
add_header Content-Type text/plain;
return 200 'ok';
}
}