Files
FitOS/web/nginx.conf.template

18 lines
544 B
Plaintext

# Strona-wizytówka: statyczny SPA + fallback, BEZ proxy /api i /health (web nie woła API).
# Brak zmiennych ${...} — envsubst entrypointa nic tu nie podmienia (np. $uri to składnia nginx).
server {
listen 9003;
server_name _;
root /usr/share/nginx/html;
index index.html;
# dev: zero cache'owania — aktualizacje widoczne od razu po rebuildzie
add_header Cache-Control "no-store, max-age=0" always;
add_header Pragma "no-cache" always;
add_header Expires "0" always;
location / {
try_files $uri /index.html;
}
}