feat(docker): add production-ready container deployment

This commit is contained in:
rbetree
2026-02-19 17:53:48 +08:00
parent cc48a02676
commit eea801bef3
5 changed files with 148 additions and 1 deletions

30
docker/nginx/default.conf Normal file
View File

@@ -0,0 +1,30 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
charset utf-8;
location = / {
try_files /index.html =404;
add_header Cache-Control "no-store";
}
location ~* \.(?:css|js|mjs|json|ico|png|jpe?g|gif|svg|webp|txt|xml|map)$ {
try_files $uri =404;
access_log off;
add_header Cache-Control "public, max-age=3600";
}
location ~* \.html$ {
try_files $uri =404;
add_header Cache-Control "no-store";
}
location / {
try_files $uri $uri/ /404.html;
add_header Cache-Control "no-store";
}
}