Hassio Ingress not working behind reverse proxy

I cannot get any of my addons to load when accessing home assistant through my nginx reverse proxy but they do work when accessing HA directly via it’s local IP

You might need:

X-Frame-Options "SAMEORIGIN"

In the proxy. I need it for Caddy otherwise the ingress frame won’t open

Tried and it did not work, some of my addons are having connection issues such as the log viewer the ingress frames open
image

Hi, did you get this working? I have the same issue using nginx

Nope :frowning:

I’ve got it working using the proxy conf on home assistant website, I can paste what I’m using if that helps?

1 Like

please do!


    listen 443 ssl;
    server_name homeassistant.XXXXX.co.uk;

    location / {
        proxy_pass http://192.168.68.132:8123;
        proxy_set_header Host $host;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }

    location /api/websocket {
        proxy_pass http://192.168.68.132:8123/api/websocket;
        proxy_set_header Host $host;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }
}

I’ve removed some of the URL but hopefully gives you the gist of it.

2 Likes

I have tried in the reverse proxy server (serving the domain) but no dice. What is your setup and where are you registering this conf? I Use AutoSSH addon, with a Nginx reverse proxy setup to allow remote access,

I was able to fix it with this conf

server {
    listen 443 ssl;
    listen [::]:443 ssl;
    server_name ha.example.com ha.example.com;
    include /config/nginx/ssl.conf;
    proxy_buffering off;


    location / {
        add_header  X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";
        proxy_pass http://192.168.0.19:8123;
        proxy_set_header Host $host;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }

    location /api/websocket {
        add_header  X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";
        proxy_pass http://192.168.0.19:8123/api/websocket;
        proxy_set_header Host $host;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }
}

But where is that conf, running? :slight_smile:

I am using https://hub.docker.com/r/linuxserver/swag however it should work on any nginx reverse proxy, what are you using?

Wandered if it was in the HA machine (in some addon) or on the reverse proxy server (Nginx on Ubuntu).

1 Like