We have supervisord [inet_http_server]
running on 127.0.0.1:9001
.
When we're trying to place it behind nginx – supervisord logtail stops working.
Supervisord settings:
[inet_http_server]
port = 127.0.0.1:9001
Nginx settings:
server {
listen 80;
server_name server.com;
location / {
proxy_pass http://127.0.0.1:9001/;
}
}
Where to dig? (Stop | Start | Restart) commands working, only tail command not working.
Best Answer
This is by design, since nginx waits until it gets the whole reply from the backend, prior to sending a response back to the client -- proxy buffering is enabled by default.
This would resolve your issue: