diff --git a/cloudflared/CHANGELOG.md b/cloudflared/CHANGELOG.md index 087cd8d..79168ea 100644 --- a/cloudflared/CHANGELOG.md +++ b/cloudflared/CHANGELOG.md @@ -1,3 +1,8 @@ +## v0.2.4 +- Add originRequest support for disableChunkedEncoding flag for additional_hosts +- Change hassio_role from admin to manager +- Improve Documentation + ## v0.2.3 - Changed Cloudflared config datatype to JSON - Enable additional_hosts via https diff --git a/cloudflared/DOCS.md b/cloudflared/DOCS.md index f04463e..b4bc9aa 100644 --- a/cloudflared/DOCS.md +++ b/cloudflared/DOCS.md @@ -64,10 +64,13 @@ Example extended add-on configuration: external_hostname: "ha.example.com" tunnel_name: "homeassistant" additional_hosts: + - hostname: "router.example.com" + service: "http://192.168.1.1" - hostname: "diskstation.example.com" - service: "http://192.168.1.5" + service: "https://192.168.1.2:5001" - hostname: "website.example.com" - service: "http://192.168.1.2" + service: "http://192.168.1.3:8080" + disableChunkedEncoding: true nginxproxymanager: true log_level: "debug" ``` @@ -99,14 +102,22 @@ other systems like a diskstation, router or anything else. Like with the `external_hostname` of HomeAssistant, DNS entries at will be automatically created at Cloudflare. +Add the (optional) `disableChunkedEncoding` option to a hostname, to disable +chunked transfer encoding. This is useful if you are running a WSGI server, +like Proxmox for example. Visit [Cloudflare Docs][disablechunkedencoding] for +further information. + Please find below an examplary entry for two additional hosts: ```yaml additional_hosts: - - hostname: "diskstation.example.com" - service: "http://192.168.1.2" - 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 ``` **Note**: _If you delete a hostname from the list, it will not be served @@ -222,3 +233,4 @@ SOFTWARE. [freenom]: https://freenom.com [nginxproxymanager]: https://github.com/hassio-addons/addon-nginx-proxy-manager [tobias]: https://github.com/brenner-tobias +[disablechunkedencoding]: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress#disablechunkedencoding diff --git a/cloudflared/config.yaml b/cloudflared/config.yaml index e65d352..61ed3f4 100644 --- a/cloudflared/config.yaml +++ b/cloudflared/config.yaml @@ -1,6 +1,6 @@ --- name: Cloudflared -version: 0.2.3 +version: 0.2.4 slug: cloudflared description: > Use a Cloudflared tunnel (formerly Argo Tunnel) @@ -9,7 +9,7 @@ url: "https://github.com/brenner-tobias/addon-cloudflared/" image: ghcr.io/brenner-tobias/cloudflared/{arch} init: false hassio_api: true -hassio_role: admin +hassio_role: manager arch: - aarch64 - amd64 @@ -26,6 +26,7 @@ schema: additional_hosts: - hostname: str service: str + disableChunkedEncoding: bool? nginxproxymanager: bool? log_level: list(trace|debug|info|notice|warning|error|fatal)? reset_cloudflared_files: bool?