群晖使用矿神Homeassistant安装后使用NPM反代会不成功!
2025年05月19日

我们需要修改configuration.yaml

configuration.yaml
套件安装后的路径:/var/packages/HomeAssistant/home/.homeassistant/configuration.yaml

  1. SSH群晖
  2. sudo chmod 755 /var/packages/HomeAssistant/home/.homeassistant/configuration.yaml
  3. cd /var/packages/HomeAssistant/home/.homeassistant
  4. sudo vim configuration.yaml
    在最后边添加:
    # Kill 400 Bad Request
    http:
    use_x_forwarded_for: true
    trusted_proxies:

    • 172.17.0.1
    • 192.168.0.10 #群晖的内网IP地址
  5. 重新启动Homeassistant
  6. 在NPM里设置反代,成功!
最后修改:2025 年 05 月 26 日
如果觉得我的文章对你有用,请随意赞赏