2026-08-23 18:44:18 +02:00
|
|
|
server {
|
|
|
|
|
listen 80;
|
2026-08-23 19:47:50 +02:00
|
|
|
server_name _; # behind a reverse proxy; match any Host
|
2026-08-23 18:44:18 +02:00
|
|
|
|
|
|
|
|
location / {
|
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
|
index index.html;
|
|
|
|
|
try_files $uri $uri/ =404;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location ~* \.(css|js|png|jpg|jpeg|gif|ico|svg|woff|woff2)$ {
|
2026-08-23 19:47:50 +02:00
|
|
|
root /usr/share/nginx/html;
|
2026-08-23 18:44:18 +02:00
|
|
|
expires 1y;
|
|
|
|
|
add_header Cache-Control "public, immutable";
|
|
|
|
|
}
|
|
|
|
|
}
|