- Switch @bytelyst/* to file:../vendor/* references; add vendor/ tree;
update both Dockerfile stages to COPY vendor/ before pnpm install
- docker-compose.yml: add healthcheck on backend /health/live; use
backend/.env as env_file; env-var-driven web build args with prod defaults;
GITEA_NPM_TOKEN uses ${:-} safe default; web depends_on service_healthy
- Add docker-compose.dev.yml hot-reload overlay
- Add scripts/dev.sh convenience script for Docker+local-web hybrid
- .npmrc: add replace-registry-host=always for Gitea Docker-internal rewrite
- Update smoke-release.sh and root package.json docker:* scripts
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
24 lines
674 B
Nginx Configuration File
24 lines
674 B
Nginx Configuration File
server {
|
|
listen 3048;
|
|
server_name _;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
# Gzip static assets
|
|
gzip on;
|
|
gzip_types text/plain text/css application/javascript application/json image/svg+xml;
|
|
gzip_min_length 1024;
|
|
|
|
# Long-lived cache for hashed assets; no-cache for entry points
|
|
location ~* \.(js|css|woff2?|png|jpg|svg|ico)$ {
|
|
add_header Cache-Control "public, max-age=31536000, immutable";
|
|
try_files $uri =404;
|
|
}
|
|
|
|
# SPA fallback — all routes serve index.html
|
|
location / {
|
|
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
}
|