Deconz-rest-plugin: Gateway not found with Hostname

Created on 21 Nov 2019  路  7Comments  路  Source: dresden-elektronik/deconz-rest-plugin

Hi,

in my environment the Phoscon-GW is running in a Docker container and is exposed with an Traefik reverse proxy using a given hostname.

While accessing the /pwa/login.html page, only the internal IP gets listed. But I can't access the application by the internal IP (and I dont want to open the Docker with host mode).

If I change the IP address via the JavaScript console everything worked.
So I patched the login.html as follows:

@@ -71,7 +71,8 @@
 var extScan = EXT_SCAN_IDLE;
 var subnets = []; // available subnets
 var subnetsToCheck = [];
-var ipv4 = [];
+var url = new URL(location.origin); // location.hostname did not work??
+var ipv4 = [ url.hostname ];
 var toCheck = [];
 var toCheckTotal = 0;
 var needCheckSubnets = false;

Now I can access the gateway. The shown fix is just a dirty hack. Please provide a solid solution.
(Picture of the problem attached)
hostname

stale

Most helpful comment

Hi, sorry for the late reply. We have now changed the login page to select the host name in preference over the IPv4 address if both are available for the same bridge id.

Will be part of the upcomming release.

All 7 comments

@manup can you please fix this with the given patch above?

i also have this problem since i wrapped all my docker services with Traefik.

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.

In mid 2020 Ihave the same issue like the opener of this issue. Is there any plan to implement/fix the autodiscovery for docker users?

Same here; it's kind of bad that it seems almost impossible to access Phoscon from 'the outside world' behind a reverse proxy.

@manup also, it's not nice that the issue got closed for inactivity when everybody was just waiting for you to apply the provided patch. What's the plan, should we just file the issue again?

@boekabart Please file a issue again. I'll make sure he gets it.
Make sure to add all information that is needed in the template.

Hi, sorry for the late reply. We have now changed the login page to select the host name in preference over the IPv4 address if both are available for the same bridge id.

Will be part of the upcomming release.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

flex-0 picture flex-0  路  4Comments

felixstorm picture felixstorm  路  4Comments

tenholde picture tenholde  路  3Comments

wizkidorg picture wizkidorg  路  3Comments

g0dsCookie picture g0dsCookie  路  3Comments