Skip to content
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

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

Open
astrakid opened this issue Nov 11, 2023 · 2 comments
Open

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

astrakid opened this issue Nov 11, 2023 · 2 comments

Comments

@astrakid
Copy link

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
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant