22 lines
593 B
Nginx Configuration File
22 lines
593 B
Nginx Configuration File
server {
|
|
listen 9001;
|
|
server_name _;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
# dev: zero cache'owania JS/CSS/HTML — aktualizacje widoczne od razu po rebuildzie
|
|
# (Vite generuje hashowane nazwy assetów, więc long-term cache byłby bezpieczne,
|
|
# ale utrudnia weryfikację zmian na telefonie)
|
|
add_header Cache-Control "no-store, max-age=0" always;
|
|
add_header Pragma "no-cache" always;
|
|
add_header Expires "0" always;
|
|
|
|
location ~ ^/(index\.html|config\.js|manifest\.json)$ {
|
|
try_files $uri /index.html;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri /index.html;
|
|
}
|
|
}
|