iobroker-community-adapters/ioBroker.iqontrol

icons in admin-module of iobroker linked through web-port

Opened this issue · 3 comments

Describe the bug
in iobroker-admin-gui the icons within iqontrol-amdinistration are delivered through the web-adapter (different port than admin-port). this causes reverse-proxy-configuration not working as expected

To Reproduce
Steps to reproduce the behavior:

  1. configure iobroker-admin to be accessible through reverse proxy (e.g. nginx serving "iobroker.domain.example" and passing this to 10.1.2.3:8081)
  2. open iobroker.domain.example
  3. click on iqontrol for ocnfiguring views etc.
  4. click on "options (or settings? in german it is "optionen")
  5. click on "default-icons": all the icons are not found. reason: links to icons are pointing to the port of the web-adapter.

Expected behavior
icons and all other links should be pointing to admin-adapter-port.

Screenshots & Logfiles
https://forum.iobroker.net/assets/uploads/files/1698948304160-4ba9855e-6cda-4b8a-8549-40386ae94983-image.png

Versions:

  • Adapter version: 2.3.0
  • JS-Controller version: 5.0.12
  • Node version: 18.18.2
  • Operating system: docker-contrainer / debian 12

a workaround is to have the reverse proxy listen on that port as well and redirect it again to iobroker. that wirks fine, but overall it is just a workaround.

current flow:
www ioadmin.tld.de -> reverse proxy -> iobroker-admin
then in iqontrol-configuration the icons are linked to
ioadmin.tld.de:8082 (port of web-instance).

the requests for that icons need to be pointed to the reverse proxy, which is listening on 8082 and proxy_pass (nginx) to iobroker-admin-instance:
ioadmin.tld.de:8082 -> reverse proxy -> iobroker-web

I have struggled with this for and found out a really stupid solution

In my case, the problem solved when I tried to open an icon, for instance
http://192.168.*.*:8082/iqontrol/images/icons/fluent/fluent_ERROR.png
It wanted to log in Iqontrol (user page 8082)
When I logged in, I reloaded the configuration page (port 8081)
and all icons were visible again.