【每日阅读】2021年3月3日-home assistant内网穿透在外网访问

内网穿透配置

不能使用http2https插件,因为hass的网页有wss协议,使用https2http不能支持wss

[hass]
type=https
local_port=8123
custom_domains=你的域名

hass开启https

修改配置文件configuration.yaml:

http:
  server_port: 8123 # 如果不配置这个端口,那https端口就默认是443,所以按需配置
  base_url: https://hass.geekgao.cn
  ssl_certificate: /config/ssl/xxxxxxx.crt # ssl目录和configuration.yaml在同一级
  ssl_key: /config/ssl/xxxxxxx.key

原创文章,作者:geekgao,如若转载,请注明出处:https://www.geekgao.cn/archives/2855

(0)
geekgaogeekgao博主
上一篇 2021年3月2日
下一篇 2021年3月5日

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

GitHub
分享本页
返回顶部

Warning: error_log(/usr/local/lighthouse/softwares/wordpress/wp-content/plugins/spider-analyser/#log/log-2007.txt): failed to open stream: No such file or directory in /usr/local/lighthouse/softwares/wordpress/wp-content/plugins/spider-analyser/spider.class.php on line 2900