correct ha app detection

This commit is contained in:
2024-11-21 17:58:47 +01:00
parent 9792677448
commit 0824e07bf6

View File

@@ -121,9 +121,11 @@ ha.rik.veenboer.xyz {
}
route {
@app {
header X-Requested-With io.homeassistant.companion.android
}
@app <<CEL
header({'X-Requested-With': 'io.homeassistant.companion.android'}) ||
header_regexp('User-Agent', '^Home Assistant') ||
header_regexp('User-Agent', 'Android')
CEL
handle @app {
reverse_proxy host:8123
}