Emulate Hue with Swag


I’m running Home Assistant in Docker and have successfully configured Alexa integration via emulate hue.

I now want to expose Home Assistant externally and have followed this guide:

This worked well and I can successfully access it externally. However, I can no longer control my Alexa lights. It looks like swag is blocking communication with Alexa on port 80.

Is there a way I can use swag and still use emulated hue to control Alexa?


Hi Paul,
The honest answer is I don’t know…

But opening and using port 80 isn’t required ( we don’t use http validation, whatever that is)

So I suggest you don’t forward port 80 through your router.
Test to see still works.

Then, to stop listening to local traffic, I suggest ( in /home/…/volumes/swag/nginx/site-confs/default.conf) try commenting out

# redirect all traffic to https
server {
    listen 80;
    listen [::]:80;
    server_name _;
    return 301 https://$host$request_uri;

Good luck

I Googled around a bit… lots of people seem to have the same problem with nginx and alexa.
Didn’t find any solution
Solution claimed to be found here