Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration for running behind an Nginx proxy #55

Open
kindlyfire opened this issue Aug 12, 2019 · 4 comments
Open

Configuration for running behind an Nginx proxy #55

kindlyfire opened this issue Aug 12, 2019 · 4 comments

Comments

@kindlyfire
Copy link

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)

@guy881
Copy link
Collaborator

guy881 commented Aug 12, 2019

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?

@kindlyfire
Copy link
Author

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

@AlekseiSaff
Copy link

still no luck with running multivisor with nginx

@ahuszko
Copy link

ahuszko commented Mar 28, 2023

@tiagocoutinho any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants