From 8cabdf3896d7d3402429f1fa11a07070d9f2536c Mon Sep 17 00:00:00 2001 From: Smart Home Cambodia Date: Thu, 27 Apr 2023 21:52:18 +0700 Subject: [PATCH] Update V.4.1.4 --- cloudflared/CHANGELOG.md | 4 +-- cloudflared/DOCS.md | 48 ++++++++++---------------------- cloudflared/config.yaml | 5 ++-- cloudflared/translations/en.yaml | 6 ---- 4 files changed, 18 insertions(+), 45 deletions(-) diff --git a/cloudflared/CHANGELOG.md b/cloudflared/CHANGELOG.md index 6565eef..d806296 100644 --- a/cloudflared/CHANGELOG.md +++ b/cloudflared/CHANGELOG.md @@ -1,4 +1,4 @@ ## What’s changed -## ⬆️ Dependency updates +## 🚀 Enhancements -- ⬆️ Update cloudflare/cloudflared to v2023.4.0 @renovate (#370) +- Remove uppercase chars from valid hostnames @brenner-tobias (#346) diff --git a/cloudflared/DOCS.md b/cloudflared/DOCS.md index 882c60b..bff012f 100644 --- a/cloudflared/DOCS.md +++ b/cloudflared/DOCS.md @@ -85,12 +85,12 @@ advanced config can be achieved using the remote tunnel setup. Example add-on configuration: ```yaml -external_hostname: ha.example.com +external_hostname: "ha.example.com" additional_hosts: - - hostname: router.example.com - service: http://192.168.1.1 - - hostname: website.example.com - service: http://192.168.1.3:8080 + - hostname: "router.example.com" + service: "http://192.168.1.1" + - hostname: "website.example.com" + service: "http://192.168.1.3:8080" ``` **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._ ```yaml -external_hostname: ha.example.com +external_hostname: "ha.example.com" ``` ### Option: `additional_hosts` @@ -127,12 +127,12 @@ Please find below an example entry for three additional hosts: ```yaml additional_hosts: - - hostname: router.example.com - service: http://192.168.1.1 - - hostname: diskstation.example.com - service: https://192.168.1.2:5001 - - hostname: website.example.com - service: http://192.168.1.3:8080 + - hostname: "router.example.com" + service: "http://192.168.1.1" + - hostname: "diskstation.example.com" + service: "https://192.168.1.2:5001" + - hostname: "website.example.com" + service: "http://192.168.1.3:8080" disableChunkedEncoding: true ``` @@ -148,21 +148,7 @@ than the default of `homeassistant`. **Note**: _The tunnel name needs to be unique in your Cloudflare account._ ```yaml -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 +tunnel_name: "myHomeAssistant" ``` ### Option: `catch_all_service` @@ -176,7 +162,7 @@ as reverse proxy, you should set the flag `nginx_proxy_manager` ([see below](#option-nginx_proxy_manager)) and not use this option._ ```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 @@ -188,9 +174,6 @@ 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 `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` If you want to use Cloudflare Tunnel with the add-on @@ -213,9 +196,6 @@ 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 `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 them to wherever you like. diff --git a/cloudflared/config.yaml b/cloudflared/config.yaml index 6ca3ea6..3d97056 100644 --- a/cloudflared/config.yaml +++ b/cloudflared/config.yaml @@ -1,9 +1,9 @@ name: Cloudflared -version: 4.1.1 +version: 4.0.14 slug: cloudflared description: Use a Cloudflare Tunnel to remotely connect to Home Assistant without opening any ports -url: https://github.com/smarthomecomkh/hasaddon/cloudflared/ +url: https://github.com/brenner-tobias/addon-cloudflared/ codenotary: dev@brenner.tech init: false hassio_api: true @@ -29,7 +29,6 @@ schema: disableChunkedEncoding: bool? tunnel_name: str? tunnel_token: str? - post_quantum: bool? catch_all_service: str? nginx_proxy_manager: bool? log_level: list(trace|debug|info|notice|warning|error|fatal)? diff --git a/cloudflared/translations/en.yaml b/cloudflared/translations/en.yaml index f13c109..c29d974 100644 --- a/cloudflared/translations/en.yaml +++ b/cloudflared/translations/en.yaml @@ -19,12 +19,6 @@ configuration: name: Additional Hosts description: >- Define a list of additional hosts to be routed by the Cloudflare Tunnel. - post_quantum: - name: Use Post-Quantum Cryptography - description: >- - Check to make the tunnel use Post-Quantum Cryptography. Warning: This - will also restricts the tunnel to QUIC, which might lead to problems - for some users. catch_all_service: name: Catch-All Service description: >-