mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
allow http 1.1 via proxy
This commit is contained in:
parent
b425f74ef4
commit
ab5cd3ad3b
1 changed files with 4 additions and 0 deletions
|
@ -214,6 +214,8 @@ server {
|
|||
proxy_cache_key $uri;
|
||||
proxy_cache_valid 200 7d;
|
||||
proxy_cache_valid 404 1m;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection "";
|
||||
|
||||
proxy_pass https://avatars.discourse.org/;
|
||||
}
|
||||
|
@ -232,6 +234,8 @@ server {
|
|||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $thescheme;
|
||||
proxy_set_header Connection "";
|
||||
proxy_http_version 1.1;
|
||||
proxy_pass http://discourse;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue