1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/homeassistant_ynh.git synced 2024-09-03 19:26:16 +02:00
This commit is contained in:
ewilly 2023-07-20 21:07:42 +02:00
parent 27cb3f4568
commit 1e8547c97b
2 changed files with 16 additions and 0 deletions

View file

@ -9,6 +9,17 @@ location / {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header X-Forwarded-Host $http_host;
location /api/websocket {
proxy_pass http://localhost:__PORT__/api/websocket;
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 $connection_upgrade;
proxy_set_header X-Forwarded-Host $http_host;
}
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;

View file

@ -92,6 +92,11 @@ ram.runtime = "2G"
[resources.permissions]
main.url = "/"
api.url = "/api"
api.auth_header = false
api.show_tile = false
api.protected= true
api.allowed = ["visitors", "all_users"]
[resources.ports]
main.default = 8123