chore(infra): update build config and deployment scripts

Update Docker configurations, nginx setup, and shared design tokens. Refresh lockfile.
This commit is contained in:
2026-02-11 11:50:04 +08:00
parent e9897388dc
commit 8ca609a889
10 changed files with 1737 additions and 58 deletions

27
nginx.conf Normal file
View File

@@ -0,0 +1,27 @@
server {
listen 4321;
server_name _;
root /usr/share/nginx/html;
# Gzip compression
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript application/rss+xml text/x-component text/x-cross-domain-policy;
# Cache static assets
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
expires 1y;
add_header Cache-Control "public";
}
location / {
try_files $uri $uri/ /index.html;
}
# Security headers
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
add_header X-XSS-Protection "1; mode=block";
}