aboutsummaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2020-05-26 14:39:04 +0200
committeryalh76 <yalh@yahoo.com>2020-05-26 14:39:04 +0200
commit1f9dc463f214a8692e99ca1f3273461dda55e8fd (patch)
treef189ed28dad5395b6f5476d94ac86468370367a0 /conf
parent27628985664a552291b74d11df8f104c5977eb6c (diff)
downloadmastodon_ynh-1f9dc463f214a8692e99ca1f3273461dda55e8fd.tar.gz
mastodon_ynh-1f9dc463f214a8692e99ca1f3273461dda55e8fd.tar.bz2
mastodon_ynh-1f9dc463f214a8692e99ca1f3273461dda55e8fd.zip
switching from add_header to more_set_headers
Diffstat (limited to 'conf')
-rw-r--r--conf/nginx.conf12
1 files changed, 6 insertions, 6 deletions
diff --git a/conf/nginx.conf b/conf/nginx.conf
index d348613..866fcc7 100644
--- a/conf/nginx.conf
+++ b/conf/nginx.conf
@@ -19,14 +19,14 @@ location / {
}
location ~ ^/(emoji|packs|system/accounts/avatars|system/media_attachments/files) {
- add_header Cache-Control "public, max-age=31536000, immutable";
- add_header Strict-Transport-Security "max-age=31536000";
+ more_set_headers "Cache-Control: public, max-age=31536000, immutable";
+ more_set_headers "Strict-Transport-Security: max-age=31536000";
try_files $uri @proxy;
}
location /sw.js {
- add_header Cache-Control "public, max-age=0";
- add_header Strict-Transport-Security "max-age=31536000";
+ more_set_headers "Cache-Control: public, max-age=0";
+ more_set_headers "Strict-Transport-Security: max-age=31536000";
try_files $uri @proxy;
}
@@ -49,8 +49,8 @@ location @proxy {
proxy_cache_valid 200 7d;
proxy_cache_valid 410 24h;
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
- add_header X-Cached $upstream_cache_status;
- add_header Strict-Transport-Security "max-age=31536000";
+ more_set_headers "X-Cached: $upstream_cache_status";
+ more_set_headers "Strict-Transport-Security: max-age=31536000";
tcp_nodelay on;
}