zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Ingress not working if HTTPS / auth enabled

Open ZTHawk opened this issue 7 months ago • 3 comments

What happened?

When having either HTTPS and/or Auth_token enabled then the Zigbee2MQTT instance is not reachable via ingress.

  • My 'configuration.yaml' (located in HA/zigbee2mqtt) looks like this:
frontend:
  port: 8099
  ssl_cert: /ssl/zigbee2mqtt.crt
  ssl_key: /ssl/zigbee2mqtt.key
  auth_token: '!secret.yaml z2m_secret_pw'

Site cannot be displayed. I get "502: Bad Gateway" and a popup:

Zigbee2MQTT

The add-on seems to not be ready, it might still be starting. Do you want to try again?

Related to #23883 and #23648

What did you expect to happen?

I can access the frontend even if HTTPS and/or auth_token is enabled.

How to reproduce it (minimal and precise)

  1. Enable SSL and/or 'Auth token'.
  2. Naviagate to Zigbee2MQTT frontend via Home Assistant

Zigbee2MQTT version

2.3.0-1

Adapter firmware version

EmberZNet 7.4.5 [GA]

Adapter

SONOFF Dongle Plus V2

Setup

HA Addon and HA in proxmox

Debug log

No response

ZTHawk avatar May 02 '25 18:05 ZTHawk

Following the issue states...

PacmanForever avatar May 02 '25 18:05 PacmanForever

Following the issue states...

Sry, I do not understand your comment

ZTHawk avatar May 03 '25 09:05 ZTHawk

Following the issue states...

Sry, I do not understand your comment

I was just saying that so that I can get new comments. To keep track of the comments.

PacmanForever avatar May 03 '25 17:05 PacmanForever

v2.5.1 is now showing the UI, but everything empty. Eg: Image

SSL is working. Having "auth_token" defined leads to the shown error. Using the standalone URL "<HA IP>:8099" is showing everything just fine.

ZTHawk avatar Jul 02 '25 21:07 ZTHawk

Same here, very strange behavior.

++ ugly workaround - install Zigbee2MQTT Proxy addon and pass it to http://homeassistant:8099 with token. It's work, but...

avbor avatar Jul 03 '25 19:07 avbor

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Sep 02 '25 00:09 github-actions[bot]

Still applicable (v2.6.1)

ZTHawk avatar Sep 02 '25 04:09 ZTHawk