Files
stack/docs/nginx.conf
kert bff683b995
Some checks failed
ci/woodpecker/push/infra-ci Pipeline was successful
ci/woodpecker/push/deploy Pipeline failed
coverage 99% coverage
ci/woodpecker/push/ci Pipeline was successful
fix docs: cache-control headers, Dockerfile copy order, broken links
- Add Cache-Control: no-cache on HTML responses so browser always gets
  fresh index.html (hashed asset filenames handle JS/CSS cache-busting)
- Fix Dockerfile: re-copy api/index.md after extract stage overwrites
- Revert onBrokenLinks to warn (category links unresolvable at build)
- Fix api/index.md links to use absolute /category/ paths
2026-03-21 15:49:20 -04:00

18 lines
379 B
Nginx Configuration File

server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
add_header Cache-Control "no-cache, must-revalidate";
}
location ~* \.(js|css|png|jpg|jpeg|gif|svg|ico|woff2?)$ {
expires 1h;
add_header Cache-Control "public, immutable";
}
}