Update to v0.2.5
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
## v0.2.5
|
||||||
|
- Update Cloudflare to 2022.1.3
|
||||||
|
- Add option to use Quick Tunnels
|
||||||
|
|
||||||
## v0.2.4
|
## v0.2.4
|
||||||
- Add originRequest support for disableChunkedEncoding flag for additional_hosts
|
- Add originRequest support for disableChunkedEncoding flag for additional_hosts
|
||||||
- Change hassio_role from admin to manager
|
- Change hassio_role from admin to manager
|
||||||
|
|||||||
+32
-3
@@ -17,6 +17,13 @@ Please make sure to be compliant with the
|
|||||||
add-on. Especially [section 2.8][cloudflare-sssa-28] could be breached when
|
add-on. Especially [section 2.8][cloudflare-sssa-28] could be breached when
|
||||||
mainly streaming videos or other Non-HTML content.
|
mainly streaming videos or other Non-HTML content.
|
||||||
|
|
||||||
|
## Quick Tunnel for Testing
|
||||||
|
|
||||||
|
You can get started with zero setup by using
|
||||||
|
[Cloudflare Quick Tunnels](https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/run-tunnel/trycloudflare).
|
||||||
|
|
||||||
|
See [below](#option-quick_tunnel) for the detailed configuration.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
The installation of this add-on is pretty straightforward but requires some prerequisites
|
The installation of this add-on is pretty straightforward but requires some prerequisites
|
||||||
@@ -29,14 +36,15 @@ restart your HomeAssistant instance.**
|
|||||||
1. (Optional if you don't yet have a working Cloudflare set-up):
|
1. (Optional if you don't yet have a working Cloudflare set-up):
|
||||||
Get a domain name and set-up Cloudflare. See section
|
Get a domain name and set-up Cloudflare. See section
|
||||||
[Domain Name and Cloudlfare Set-Up](#domain-name-and-cloudlfare-set-up) for details.
|
[Domain Name and Cloudlfare Set-Up](#domain-name-and-cloudlfare-set-up) for details.
|
||||||
1. Set the `additional_hosts` add-on option with your domain name or a subdomain
|
1. Add the `http` integration settings to your HA-config as described [below](#Configuration.yaml).
|
||||||
|
1. Set the `external_hostname` add-on option with your domain name or a subdomain
|
||||||
that you want to use to access Home Assistant.
|
that you want to use to access Home Assistant.
|
||||||
1. (Optional) Change the `tunnel_name` add-on option (default: homeassistant).
|
1. (Optional) Change the `tunnel_name` add-on option (default: homeassistant).
|
||||||
1. (Optional) Add additional hosts to forward to in the `additional_hosts` array
|
1. (Optional) Add additional hosts to forward to in the `additional_hosts` array
|
||||||
(see [detailed description below](#Option:-`additional_hosts`)).
|
(see [detailed description below](#option-additional_hosts)).
|
||||||
1. (Optional) Add the `nginxproxymanager` flag to use the Cloudflare tunnel with
|
1. (Optional) Add the `nginxproxymanager` flag to use the Cloudflare tunnel with
|
||||||
the Nginxproxymanager add-on (see
|
the Nginxproxymanager add-on (see
|
||||||
[detailed description below](#Option:-`nginxproxymanager`)).
|
[detailed description below](#option-nginxproxymanager)).
|
||||||
1. **Any existing DNS entries with your desired external hostname and additional
|
1. **Any existing DNS entries with your desired external hostname and additional
|
||||||
hosts will be overridden at Cloudflare**.
|
hosts will be overridden at Cloudflare**.
|
||||||
1. Start the "Cloudflare" add-on.
|
1. Start the "Cloudflare" add-on.
|
||||||
@@ -146,6 +154,25 @@ CNAME records in Cloudflare for all of them, pointing to your `external_hostname
|
|||||||
Finally, you have to set-up your proxy hosts in Nginx Proxy Manager and forward
|
Finally, you have to set-up your proxy hosts in Nginx Proxy Manager and forward
|
||||||
them to wherever you like.
|
them to wherever you like.
|
||||||
|
|
||||||
|
### Option: `quick_tunnel`
|
||||||
|
|
||||||
|
You can get started with zero setup by using
|
||||||
|
[Cloudflare Quick Tunnels](https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/run-tunnel/trycloudflare).
|
||||||
|
Set `quick_tunnel` to `true` , all other configuration will be ignored. After
|
||||||
|
starting the addon check the logs for your unique randomly generated
|
||||||
|
`trycloudflare.com` URL.
|
||||||
|
Please note that you still have to add the `http` integration settings to your
|
||||||
|
HA-config as described [here](#Configuration.yaml).
|
||||||
|
|
||||||
|
Quick Tunnel add-on configuration:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
quick_tunnel: true
|
||||||
|
external_hostname: ""
|
||||||
|
tunnel_name: ""
|
||||||
|
additional_hosts: []
|
||||||
|
```
|
||||||
|
|
||||||
### Option: `log_level`
|
### Option: `log_level`
|
||||||
|
|
||||||
The `log_level` option controls the level of log output by the addon and can
|
The `log_level` option controls the level of log output by the addon and can
|
||||||
@@ -228,6 +255,8 @@ SOFTWARE.
|
|||||||
|
|
||||||
[advancedconfiguration]: https://www.home-assistant.io/getting-started/configuration/
|
[advancedconfiguration]: https://www.home-assistant.io/getting-started/configuration/
|
||||||
[cloudflare]: https://www.cloudflare.com/
|
[cloudflare]: https://www.cloudflare.com/
|
||||||
|
[cloudflare-sssa]: https://www.cloudflare.com/en-gb/terms/
|
||||||
|
[cloudflare-sssa-28]: https://www.cloudflare.com/en-gb/terms/#:~:text=2.8%20Limitation%20on%20Serving%20Non%2DHTML%20Content
|
||||||
[cloudflaretutorial]: https://support.cloudflare.com/hc/en-us/articles/360027989951-Getting-Started-with-Cloudflare
|
[cloudflaretutorial]: https://support.cloudflare.com/hc/en-us/articles/360027989951-Getting-Started-with-Cloudflare
|
||||||
[domainarticle]: https://www.linkedin.com/pulse/what-do-domain-name-how-get-one-free-tobias-brenner?trk=public_post-content_share-article
|
[domainarticle]: https://www.linkedin.com/pulse/what-do-domain-name-how-get-one-free-tobias-brenner?trk=public_post-content_share-article
|
||||||
[freenom]: https://freenom.com
|
[freenom]: https://freenom.com
|
||||||
|
|||||||
@@ -28,5 +28,6 @@ schema:
|
|||||||
service: str
|
service: str
|
||||||
disableChunkedEncoding: bool?
|
disableChunkedEncoding: bool?
|
||||||
nginxproxymanager: bool?
|
nginxproxymanager: bool?
|
||||||
|
quick_tunnel: bool?
|
||||||
log_level: list(trace|debug|info|notice|warning|error|fatal)?
|
log_level: list(trace|debug|info|notice|warning|error|fatal)?
|
||||||
reset_cloudflared_files: bool?
|
reset_cloudflared_files: bool?
|
||||||
|
|||||||
Reference in New Issue
Block a user