zigbee2mqtt-frontend
zigbee2mqtt-frontend copied to clipboard
Can't serve Z2M on a custom domain
What happened?
I'm trying to expose Z2M on a custom domain, let's say mydomain.com.
I've set up a Nginx Proxy Manager configuration forwarding from zigbee.domain.com to local 192.168.0.x:8080. When I try to open 192.168.0.x:8080 it works fine and frontend loads.
However, when I'm trying to open zigbee.domain.com I get an empty page and an error message in a console:
Uncaught SyntaxError: Invalid or unexpected token (at index.5094f535.js:1:5493)
I have tried configuring an auth-token and url, like this, but it doesn't help:
frontend:
auth_token: super-secred
url: https://zigbee.domain.com
The issue is present in Chrome, Safari, and Firefox.
Dump of state: state.json.zip
What browsers are you seeing the problem on?
Firefox, Chrome, Safari
Relevant stacktrace
Uncaught SyntaxError: Invalid or unexpected token (at index.5094f535.js:1:5493)
Did you download state.json.zip?
I will attach state.json.zip
I rolled back from 1.25.2 to 1.25.1 and it works fine.
hi, have you tried following this manual?
https://www.zigbee2mqtt.io/guide/configuration/frontend.html#nginx-proxy-configuration
I did. But this docs doesn't seem relevant, since the issue is present in Firefox as well as in Webkit browsers.
I'm also experiencing this issue on a custom domain. The frontend shows no devices or anything
I did. But this docs doesn't seem relevant, since the issue is present in Firefox as well as in Webkit browsers.
do you have basic http authentication enabled?
I don't
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.
The issue was resolved for me.