blockstream-satellite-api/nginx/nginx.conf
Blockstream Satellite 8c91e11cca Remove chunked transfer encoding from nginx conf
This configuration was leading to long delays when receiving SSE
notifications with the demo-rx app.
2021-12-28 10:01:04 -03:00

19 lines
No EOL
596 B
Nginx Configuration File

server {
listen 80;
server_name proxy_server;
location / {
# Based on https://docs.gunicorn.org/en/stable/deploy.html
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://api-server:9292/;
}
location /subscribe/ {
proxy_buffering off;
proxy_request_buffering off;
proxy_cache off;
proxy_http_version 1.1;
proxy_pass http://sse-server:4500/stream?channels=;
}
}