Configuration for running behind an Nginx proxy
Opened this issue · 4 comments
Hi. First off, thank you for creating multivisor, it's an amazing piece of software! I'd like to know if there's a recommended configuration for running it behind an Nginx proxy (and using HTTPS).
I always seem to get an error GET https://<my domain>/api/stream 504
after a minute or so, and the panel then shows me the following error: Couldn't connect to multivisor server, make sure it is running
(even though it is running, and refreshing the pages gives me access again for a minute or so)
Hello @kindlyfire!
There seems to be some kind of timeout, the project is using so-called "server sent events" on this endpoint, so the connection should stay open. Personally, I haven't used multivisor with Nginx. Could you attach your Nginx configuration so I can reproduce the issue?
This is the Nginx configuration I run for my multivisor site:
server {
server_name <domain>;
include to_ssl.conf;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name <domain>;
include ssl.conf;
include certs/<domain>.conf;
location / {
include proxy_settings.conf;
proxy_pass http://127.0.0.1:22000;
}
location /api/stream {
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 https;
proxy_set_header Proxy "";
proxy_pass http://127.0.0.1:22000;
proxy_buffering off;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
tcp_nodelay on;
}
}
still no luck with running multivisor with nginx
@tiagocoutinho any update on this?