server { listen 80; server_name _; client_max_body_size 10M; root /usr/share/nginx/html; index issues-dashboard.html; # HTML 캐시 비활성화 location ~* \.html$ { expires -1; add_header Cache-Control "no-store, no-cache, must-revalidate"; } # JS/CSS 캐시 비활성화 location ~* \.(js|css)$ { expires -1; add_header Cache-Control "no-store, no-cache, must-revalidate"; } # 정적 파일 (이미지 등) location ~* \.(png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf)$ { expires 1h; add_header Cache-Control "public, no-transform"; } # API 프록시 (System 3 API) location /api/ { proxy_pass http://system3-api:8000/api/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_cache_bypass $http_upgrade; } # 업로드 파일 location /uploads/ { alias /usr/share/nginx/html/uploads/; expires 1y; add_header Cache-Control "public, immutable"; } location / { try_files $uri $uri/ /issues-dashboard.html; } }