Seems as I’ve been able to fix the fragile system.
- use in section 80 no 301 forward, but only the sections from hue emulation manual.
→
server {
listen 80;
location /api {
proxy_pass http://192.168.0.10:8080/api/;
}
location / {
proxy_pass http://192.168.0.10:8080/;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
- in 443 section all the stuff can be as desired (I think)
- set in hue emulation settings page port to 80 (IP I kept empty, and hue v1 emulation I also left deactivated)
- remove from alexa-homepage all smart home devices and search again
- call page http://192.168.0.10:8080/api/status/link (or however the IP of the Raspi is) to activate device pairing
- all devices were found on my side.
By the way: all entries in http://192.168.0.10/api/status were “no” but pairing still succeeded fine, and
Hue Pages with :80 are still forwarded to https://localhost by chrome (and :8443 by opera) but anyhow all seems to work is fine.