use HTTP 1.1 for Nginx reverse proxy
Otherwise we were getting: POST /api/v0/query returned 500 play.core.server.common.ServerResultException: HTTP 1.0 client does not support chunked respo Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
e496295412
commit
060fac2d20
|
@ -41,6 +41,16 @@ nginx_sites:
|
||||||
- ssl_certificate_key /certs/status.im/origin.key
|
- ssl_certificate_key /certs/status.im/origin.key
|
||||||
|
|
||||||
- location / {
|
- location / {
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_pass http://127.0.0.1:{{ the_hive_port }}/;
|
proxy_pass http://127.0.0.1:{{ the_hive_port }}/;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_cache_bypass $http_upgrade;
|
||||||
|
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
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 $scheme;
|
||||||
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
|
proxy_set_header X-Forwarded-Port $server_port;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue