I have a local Domoticz server, with a ssh tunnel to a public server. This public server has an apache https proxy enabled.
DZ is well displayed through the remote url, and I can switch my devices on and off.
When I click on a widget to switch a light on, the light is well toggle on, but the widget icon is not refreshed.
When I try to open https://<public_url>/service-worker.js I've a "401 Unauthorized error"
Here is my config:
- domoticz stable version 2024.7 in my LAN, IP 192.168.1.1, listening on port 8080
- on this 192.168.1.1 dz server, autossh is configured to connect to my public server (a.b.c.d) and to establish an ssh tunnel from local port 8080 to remote port 8888:
Code: Select all
/usr/bin/autossh -M 0 -o "ServerAliveInterval=30" -o "ServerAliveCountMax=3" -o "ExitOnForwardFailure=yes" -N -R 8888:127.0.0.1:8080 [email protected]
- on the public server, an https apache proxy is enabled with a basic auth
Code: Select all
SSLProxyEngine on ProxyVia on ProxyPreserveHost On ProxyRequests off ProxyPass / http://127.0.0.1:8888/ ProxyPassReverse / http://127.0.0.1:8888/ ProxyTimeout 5400 Timeout 5400 RequestHeader set Authorization "Basic XXXXX" <Proxy *> Order deny,allow Allow from all Authtype Basic Authname "Password Required" AuthUserFile /etc/apache2/dohtpasswd Require valid-user </Proxy>
- in dz setup, I set "Trusted proxy" to: a.b.c.d;127.0.0.1;127.*;192.168.1.1
What I'm missing ? Can you help me ?
Thanks