mirror of
https://github.com/fosrl/docs.git
synced 2025-05-13 05:40:41 +01:00
Merge pull request #16 from scetu/homeassistant-addon-expose-UI
Guide how to setup Home Assistant Proxy with Newt addon
This commit is contained in:
commit
eb09a42b3b
1 changed files with 25 additions and 0 deletions
|
@ -60,6 +60,31 @@ The following environment variables are passed to the `Newt` container:
|
|||
- `NEWT_ID`
|
||||
- `NEWT_SECRET`
|
||||
|
||||
## Exposing Home Assistant through addon
|
||||
1. Connect addon to your Pangolin by completing environment variables and starting the addon
|
||||
2. In Pangolin create new HTTPS resource for your new Tunnel with subdomain
|
||||
3. Within the created Resource add new Target Configuration
|
||||
|
||||
| Method | IP / Hostname | Port |
|
||||
| --- | ----------- | --- |
|
||||
| HTTPS | 127.0.0.1 | 8123 |
|
||||
|
||||
4. In Home Assistant's `configuration.yaml` add these two sections:
|
||||
```yaml
|
||||
http:
|
||||
use_x_forwarded_for: true
|
||||
trusted_proxies:
|
||||
- 127.0.0.1
|
||||
homeassistant:
|
||||
allowlist_external_urls:
|
||||
- "https://<subdomain>.example.com" # <-- Replace with URL of created resource in Pangolin
|
||||
```
|
||||
:::note
|
||||
Please see [http](https://www.home-assistant.io/integrations/http/) documentation and [allowlist_external_urls](https://www.home-assistant.io/integrations/homeassistant/#external_url) on Home Assistant site
|
||||
:::
|
||||
5. Restart Home Assistant and your new Pangolin Proxy should be alive
|
||||
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
#### **Add-on does not start?**
|
||||
|
|
Loading…
Reference in a new issue