Websoft9 / docker-library

Docker Compose examples of selfhosted FOSS based on official image, just run it.
https://www.websoft9.com
Other
31 stars 16 forks source link

nginx-proxy for homeassistant(ip:port access ok) #502

Open lessfrim opened 7 months ago

lessfrim commented 7 months ago

chatgpt give below

    location / {
        proxy_pass http://$server:8123; # 假设 Home Assistant 在本地主机的 8123 端口上运行
        proxy_set_header Host $host;
        proxy_redirect http:// https://;
        proxy_http_version 1.1;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }

I can not used now, need more research

qiaofeng1227 commented 5 months ago

https://community.home-assistant.io/t/reverse-proxy-using-nginx/196954

zhaojing1987 commented 5 months ago

https://www.home-assistant.io/integrations/http#reverse-proxies

chendelin1982 commented 5 months ago

test 0.0.0.0/0

zhaojing1987 commented 5 months ago

0.0.0.0/0 不行,还是需要一个确定的IP或者范围

chendelin1982 commented 5 months ago

use busybox container to do: