allow http 1.1 via proxy

This commit is contained in:
Sam Saffron 2016-01-04 09:52:11 +11:00
parent b425f74ef4
commit ab5cd3ad3b

View file

@ -214,6 +214,8 @@ server {
proxy_cache_key $uri; proxy_cache_key $uri;
proxy_cache_valid 200 7d; proxy_cache_valid 200 7d;
proxy_cache_valid 404 1m; proxy_cache_valid 404 1m;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_pass https://avatars.discourse.org/; proxy_pass https://avatars.discourse.org/;
} }
@ -232,6 +234,8 @@ server {
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $thescheme; proxy_set_header X-Forwarded-Proto $thescheme;
proxy_set_header Connection "";
proxy_http_version 1.1;
proxy_pass http://discourse; proxy_pass http://discourse;
} }