-
Notifications
You must be signed in to change notification settings - Fork 66
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
Can’t connect to the web ui when behind a proxy #127
Comments
Hello, what do you mean by password protected revers proxy ? Do you mean a basic auth? Can you check the chrome Console to see if there are any hints on how to resolve the errors? |
Closing due to no answer, feel free to re-open |
know this is a very old issue but recently (as in the past hour) switched over to buying a domain and also switched to using cloudflare, and running into the same type of issue while using wildcard dns settings. Don't have anything password protected though, but it might just be an issue with cloudflare possibly? Unless you have your server behind cloudflare @anthonyraymond ? |
Hey @anthonyraymond by chance you have any ideas? This is still an ongoing issue sadly :s it only started happening after buying a domain and switching over to cloudflare while before it was working just fine. connecting through |
Hello @JourneyOver 😃 Can you share:
i'm gonna need extra context to investigate :) |
I have Joal running in a docker container and same with NGINX. I have no plans on switching to any other like traefik or caddy as I have been running NGINX just fine for years so please do not suggest either of those two.
The above link has my nginx.conf, joal.conf, ssl.conf, resolver.conf and proxy.conf if you need any other conf file let me know and I'll get it up as well.
the connection settings in joal are correctly set as the only thing that really changed between my old working setup and the new broken setup was just the ending of the url (The
Using Cloudflare as my DNS provider with namecheap as my domain registrar
Previously I was using a freenom domain and a random DNS prodiver (DynuDNS) and had been for a good several years, but recently after having some major issues with freenom I decided to go about buying an actual domain name from namecheap (planning on moving to porkbun though in the near future due to namecheap prices rising for certain domain renewals) that I could call my own and that wouldn't mysteriously be taken away for unknown reasons (which is something that freenom has a tendency to do every so often), as well as finally switching over to using cloudflare as my DNS provider as they have way more options than DynuDNS does in terms of things. Upon switching things over and correcting the Joal is the only application that is having errors with websocket connections, all my other software on my domain that has websocket stuff has no issues at all. |
I'm using 20026 as the port for Joal in Docker.
and like I said before this was working perfectly fine with 20026 in the both the nginx config and in the connection settings for the port before I moved over to the new URL/DNS, but just as a test I did what you suggested and changed to port 443 in the connection settings and it still throws the error the only change being that the url in the error doesn't have the port number in it now. So instead of it being like
it's hosted in a docker container on a random PC I had laying around running Ubuntu that I have setup in my home, and yes it's behind my router as is everything else running in my home that has an internet connection. |
Hum i just find out that cloudflare is more than just a dns provider. To test a bit further can you:
|
So I did some more messing around with the DNS side of things on cloudflare and finally got it working, I ended up having to add a new DNS record just for the server port change in the connection settings really confuses me though as when I was on the old URL and DNS before the switch to using the new registrar (new URL) and cloudflare DNS I had it set to 20026 in the connection settings and it was working perfectly fine, but for some reason being with cloudflare it just does not work with 20026 in the connection settings for the port server. |
Glad to hear that it worked, DNS propagation onften takes somes times, change may not be immediate... it may be missleading. To add to the confusion your Operating System caches DNS entries. You probably forgot to clean your cache or whatever at some point. I'm not sure why JOAL is the only one to require that though... I'm not surprise to see that port 443 is working, your nginx config was allowing this (this is also how i've setup my reverse proxy). Are you sure your ISP router have port forwarding for port 20026:20026 ? |
For me, it's weird, Joal is choosing the wrong WebSocket port... I set up Joal on the server port 443 joal:
image: anthonyraymond/joal:latest
restart: always
volumes:
- ./services/joal:/data
command:
- "--joal-conf=/data"
- "--spring.main.web-environment=true"
- "--server.port=443"
- "--joal.ui.path.prefix=test"
- "--joal.ui.secret-token=test"
labels:
- "traefik.enable=true"
- "traefik.http.routers.joal.middlewares=authtraefik"
- "traefik.http.routers.joal.entrypoints=websecure"
- "traefik.http.routers.joal.tls.certresolver=myresolver"
- "traefik.http.routers.joal.rule=Host(`joal.test.com`)"
- "traefik.http.services.joal.loadbalancer.server.port=443"
# - "traefik.http.middlewares.joal-websocket.headers.customrequestheaders.Upgrade=websocket"
# - "traefik.http.middlewares.joal-websocket.headers.customrequestheaders.Connection=Upgrade"
- "traefik.http.routers.joal.service=joal" I can access the web UI. And here is the error in the web UI: WebSocket connection to 'wss://joal.test.com:80/' failed: webstomp.js:826 It seems Joal is choosing port 80 for WebSocket, it should be |
Okay my bad sorry: #224 (comment) For me all is working for traefik 🎉 |
I'm having the same issue with a blank page behind an HAproxy. The browser console just returns 404 for all resources so the page stays blank It uses the correct backend so it's not a target issue. I'm running JOAL directly using java on an Ubuntu 24
|
Hey / I tried to put the main web interface under a subdomain using a Cloudflare CDN and a password protected reverse proxy. I was able to reach the interface successfully (like on the rest of my other proxies) but the main interface did not connect to the internal server and port from the main config.json file. Any idea why this happen?
I know this is a very unlikely scenario but have you tried to accomplish this successfully ?
The text was updated successfully, but these errors were encountered: