Cloudflare update

This commit is contained in:
2023-05-21 12:08:39 +07:00
parent 758cfd4aa7
commit 5205570001
3 changed files with 38 additions and 18 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
## Whats changed ## Whats changed
## 🐛 Bug fixes ## ⬆️ Dependency updates
- Revert Cloudflared to 2023.4.1 @smarthome.com.kh (#389) - ⬆️ Update cloudflare/cloudflared to v2023.5.0 @renovate (#392)
+34 -14
View File
@@ -85,12 +85,12 @@ advanced config can be achieved using the remote tunnel setup.
Example add-on configuration: Example add-on configuration:
```yaml ```yaml
external_hostname: "ha.example.com" external_hostname: ha.example.com
additional_hosts: additional_hosts:
- hostname: "router.example.com" - hostname: router.example.com
service: "http://192.168.1.1" service: http://192.168.1.1
- hostname: "website.example.com" - hostname: website.example.com
service: "http://192.168.1.3:8080" service: http://192.168.1.3:8080
``` ```
**Note**: _This is just an example, don't copy and paste it! Create your own!_ **Note**: _This is just an example, don't copy and paste it! Create your own!_
@@ -106,7 +106,7 @@ services.
**Note**: _The tunnel name needs to be unique in your Cloudflare account._ **Note**: _The tunnel name needs to be unique in your Cloudflare account._
```yaml ```yaml
external_hostname: "ha.example.com" external_hostname: ha.example.com
``` ```
### Option: `additional_hosts` ### Option: `additional_hosts`
@@ -127,12 +127,12 @@ Please find below an example entry for three additional hosts:
```yaml ```yaml
additional_hosts: additional_hosts:
- hostname: "router.example.com" - hostname: router.example.com
service: "http://192.168.1.1" service: http://192.168.1.1
- hostname: "diskstation.example.com" - hostname: diskstation.example.com
service: "https://192.168.1.2:5001" service: https://192.168.1.2:5001
- hostname: "website.example.com" - hostname: website.example.com
service: "http://192.168.1.3:8080" service: http://192.168.1.3:8080
disableChunkedEncoding: true disableChunkedEncoding: true
``` ```
@@ -148,7 +148,21 @@ than the default of `homeassistant`.
**Note**: _The tunnel name needs to be unique in your Cloudflare account._ **Note**: _The tunnel name needs to be unique in your Cloudflare account._
```yaml ```yaml
tunnel_name: "myHomeAssistant" tunnel_name: myHomeAssistant
```
### Option: `post_quantum`
If you want Cloudflared to use post-quantum cryptography for the tunnel,
set this flag.
**Note**: _When `post_quantum` is set, cloudflared restricts itself to QUIC
transport for the tunnel connection. This might lead to problems for some users.
Also, it will only allow post-quantum hybrid key exchanges and not fall back to
a non post-quantum connection._
```yaml
post_quantum: true
``` ```
### Option: `catch_all_service` ### Option: `catch_all_service`
@@ -162,7 +176,7 @@ as reverse proxy, you should set the flag `nginx_proxy_manager` ([see
below](#option-nginx_proxy_manager)) and not use this option._ below](#option-nginx_proxy_manager)) and not use this option._
```yaml ```yaml
catch_all_service: "http://192.168.1.100" catch_all_service: http://192.168.1.100
``` ```
**Note**: _This will still route your defined `external_hostname`to Home Assistant **Note**: _This will still route your defined `external_hostname`to Home Assistant
@@ -174,6 +188,9 @@ CNAME records in Cloudflare for all of them, pointing to your `external_hostname
or directly to the tunnel URL that you can get from the CNAME entry of or directly to the tunnel URL that you can get from the CNAME entry of
`external_hostname`. `external_hostname`.
Alternatively you can add a [wildcard DNS record](https://blog.cloudflare.com/wildcard-proxy-for-everyone/)
in Cloudflare by adding a CNAME record with `*` as name.
### Option: `nginx_proxy_manager` ### Option: `nginx_proxy_manager`
If you want to use Cloudflare Tunnel with the add-on If you want to use Cloudflare Tunnel with the add-on
@@ -196,6 +213,9 @@ CNAME records in Cloudflare for all of them, pointing to your `external_hostname
or directly to the tunnel URL that you can get from the CNAME entry of or directly to the tunnel URL that you can get from the CNAME entry of
`external_hostname`. `external_hostname`.
Alternatively you can add a [wildcard DNS record](https://blog.cloudflare.com/wildcard-proxy-for-everyone/)
in Cloudflare by adding a CNAME record with `*` as name.
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.
+2 -2
View File
@@ -1,10 +1,10 @@
name: Cloudflared name: Cloudflared
version: 4.1.4 version: 4.1.5
slug: cloudflared slug: cloudflared
description: Use a Cloudflare Tunnel to remotely connect to Home Assistant without description: Use a Cloudflare Tunnel to remotely connect to Home Assistant without
opening any ports opening any ports
url: https://github.com/smarthomecomkh/hasaddon/cloudflared/ url: https://github.com/smarthomecomkh/hasaddon/cloudflared/
codenotary: info@smarthome.com.kh codenotary: info@smarthomecambodia.com
init: false init: false
hassio_api: true hassio_api: true
hassio_role: homeassistant hassio_role: homeassistant