Fix proxy caching config additions in terms of HSTS

See tootsuite/mastodon#8487
This commit is contained in:
Eugen Rochko 2018-08-28 00:05:52 +02:00 committed by GitHub
parent eabfcc9122
commit 81b77f7761
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -158,6 +158,7 @@ index 0b50542..1d3fac6 100644
+ proxy_cache_valid 200 7d;
+ 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";
+
tcp_nodelay on;
}