fix in reverse

This commit is contained in:
Mateusz Gruszczyński
2026-04-07 11:52:10 +02:00
parent dda1c47764
commit 3e33fc0a99

View File

@@ -16,6 +16,8 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_hide_header Etag;
proxy_hide_header strict-transport-security;
proxy_connect_timeout 10s;
proxy_send_timeout 30s;
@@ -38,4 +40,11 @@ server {
proxy_pass http://web:80/;
add_header Cache-Control "no-store, no-cache" always;
}
location ~* \.(?:css|js|mjs|png|jpg|jpeg|gif|svg|ico|webp|woff2?)$ {
expires 1y;
add_header Cache-Control "public, max-age=31536000, immutable" always;
try_files $uri =404;
}
}