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:
Jakub Sokołowski 2020-10-12 10:51:26 +02:00
parent e496295412
commit 060fac2d20
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 11 additions and 1 deletions

View File

@ -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;
} }