wss:// on nginx #3519
Unanswered
megaratboy96
asked this question in
Q&A
wss:// on nginx
#3519
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone, I have been browsing the forums, there are a lot of posts about Web sockets, but I still can't figure it out, I don't know what I'm missing. I started to use mcsmanager (Minecraft server manager) which has a Web panel hosted on 192.168.10.6:23333 and a daemon on 192.168.10.6:24444. I couldn't get both to work on the same sub domain, so I made one sub domain for the Web panel and one for the Daemon for testing purposes. mc.domain.com is the Web panel and mcd.domain.com is the Daemon (hiding my true domain name for privacy). Can anyone help me get this setup? I'd like both to be on the same sub domain locked behind Authentik, I know how to setup Authentik, I just can't figure out how to use web sockets. Thanks for your help!
Here's the text I typed in the advanced section of location.
location / {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Scheme $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://192.168.10.6:24444/;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
}
Here is the screenshots for the sub domain hosting the Daemon.



Here's what I get when I type wss://mcd.domain.com.
Here is the Web panel, I'm trying to connect to the Daemon.
Beta Was this translation helpful? Give feedback.
All reactions