-
Notifications
You must be signed in to change notification settings - Fork 503
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
Manual hostname for gateway #702
Comments
Also related: #659 |
@manup I gave this another shot yesterday, and ran into a strange issue which I believe is a bug. My attempted setup consists of deCONZ running in a Docker container (
This seems to be related to the changes in #659, since Please let me know if you want more info or configuration for setting up a Docker environment like this. |
Temporary fixes: In
This will force port 443 instead of 80 as default (would be better to not defaulting to any port but this was easiest due to the minified files). Next problem is websockets connecting with
Haven't gotten the last part working yet, with Traefik. |
The first request is done by using the info of the browser url bar, I wonder why this isn't used in further login. I recon this should be the main issue to fix.
One part of the discovery tries to use the ip addresses known to the browser, these can be queried via WebRTC. Based on that a local LAN search is possible which checks for gateways on port 80 or 8080. The main purpose for this is to find gateways when they are not reachable via internet discovery.
I'll check the code, so basically the default fallback should be only host without port, so that browser can figure it out on it's own by http/https? |
It is used, but adds port 80 to the URL which breaks it (it doesn't use this when testing the connection, but when saving it to localstorage I think).
Exactly, tacking on port 80 doesn't do anything if it's already |
Did 2.05.48 solve the issues? |
@manup Sorry, I haven't had time to test this yet. Will try to find some time in the coming days. |
@manup Running 2.05.49 now. Upon load of pwa, it scans and finds my proxied deCONZ properly:
It properly pulls the config from When clicking the discovered unit, it sends a (preflight) request to I guess one way to solve this is to configure the deCONZ port to 443 instead, which seems to work fine. Maybe that's good enough? In my case at least, it's no problem since I'm running it in Docker, but if you're sharing a server with multiple applications it's unlikely you can claim port 443 like that though (you probably have the reverse proxy running there). There's also still the problem with |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I also struggled with using the web app + traefik as reverse proxy, but I found a workaround. Maybe someone is interested: |
Running deCONZ and Phoscon with Docker using the
marthoc/docker-deconz
image. The instance is connected to an isolated network where Traefik is responsible for proxying. The problem I’m facing is that the discovery of the gateway announces the internal IP which isn’t reachable from the outside, only through the reverse proxy. I would like to be able to force the discovery to announce another hostname, to make this work.Does that make sense, anything that would be useful for others? Or is there another way to do it?
The text was updated successfully, but these errors were encountered: