This commit is contained in:
2026-05-01 20:08:49 +02:00
parent d9cae926d8
commit 72a9f9d9e2
2 changed files with 45 additions and 2 deletions

35
frontend/nginx.conf Normal file
View File

@@ -0,0 +1,35 @@
server {
listen 3000;
server_name _;
root /usr/share/nginx/html;
index index.html;
include /etc/nginx/mime.types;
types {
application/manifest+json webmanifest;
}
location = /manifest.webmanifest {
add_header Cache-Control "no-cache, no-store, must-revalidate";
try_files $uri =404;
}
location = /sw.js {
add_header Cache-Control "no-cache, no-store, must-revalidate";
try_files $uri =404;
}
location /icons/ {
add_header Cache-Control "no-cache, no-store, must-revalidate";
try_files $uri =404;
}
location /assets/ {
add_header Cache-Control "public, max-age=31536000, immutable";
try_files $uri =404;
}
location / {
try_files $uri $uri/ /index.html;
}
}