ioBroker.iqontrol icon indicating copy to clipboard operation
ioBroker.iqontrol copied to clipboard

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

Open astrakid opened this issue 1 year ago • 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

astrakid avatar Nov 11 '23 14:11 astrakid

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.

astrakid avatar Apr 15 '24 19:04 astrakid

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

astrakid avatar Apr 15 '24 19:04 astrakid