@ -52,7 +52,7 @@ server {
gzip_http_version 1 .1 ;
gzip_http_version 1 .1 ;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript ;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript ;
add_header Strict-Transport-Security "max-age=31536000" ;
add_header Strict-Transport-Security "max-age=31536000" always ;
location / {
location / {
try_files $uri @proxy ;
try_files $uri @proxy ;
@ -60,13 +60,13 @@ server {
location ~ ^/(emoji|packs|system/accounts/avatars|system/media_attachments/files) {
location ~ ^/(emoji|packs|system/accounts/avatars|system/media_attachments/files) {
add_header Cache-Control "public, max-age=31536000, immutable" ;
add_header Cache-Control "public, max-age=31536000, immutable" ;
add_header Strict-Transport-Security "max-age=31536000" ;
add_header Strict-Transport-Security "max-age=31536000" always ;
try_files $uri @proxy ;
try_files $uri @proxy ;
}
}
location /sw.js {
location /sw.js {
add_header Cache-Control "public, max-age=0" ;
add_header Cache-Control "public, max-age=0" ;
add_header Strict-Transport-Security "max-age=31536000" ;
add_header Strict-Transport-Security "max-age=31536000" always ;
try_files $uri @proxy ;
try_files $uri @proxy ;
}
}
@ -90,7 +90,7 @@ server {
proxy_cache_valid 410 24h ;
proxy_cache_valid 410 24h ;
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504 ;
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504 ;
add_header X-Cached $upstream_cache_status ;
add_header X-Cached $upstream_cache_status ;
add_header Strict-Transport-Security "max-age=31536000" ;
add_header Strict-Transport-Security "max-age=31536000" always ;
tcp_nodelay on ;
tcp_nodelay on ;
}
}