diff --git a/3dprinter-octoprint/CHANGELOG.md b/3dprinter-octoprint/CHANGELOG.md index 3a82a5e..05c094f 100644 --- a/3dprinter-octoprint/CHANGELOG.md +++ b/3dprinter-octoprint/CHANGELOG.md @@ -1,6 +1,6 @@ - 2022.12.01 - - Use separate templates for Caddy Ingress/direct config. - Add mode for camera (for testing). + - Set Caddy to trust private ranges on Ingress entry. - 2022.11.01 - Add reverse proxy config for camera with Ingress (untested). diff --git a/3dprinter-octoprint/config.yaml b/3dprinter-octoprint/config.yaml index 946d3f3..5461546 100644 --- a/3dprinter-octoprint/config.yaml +++ b/3dprinter-octoprint/config.yaml @@ -1,5 +1,5 @@ name: "3DPrinter-OctoPrint" -version: "2022.12.02" +version: "2022.12.03" slug: "3dprinter-octoprint" description: "OctoPrint as an addon, no additional bells and whistles." url: "https://github.com/fredrikbaberg/home-assistant-addons/tree/main/3dprinter-octoprint" diff --git a/3dprinter-octoprint/rootfs/usr/share/tempio/caddy/Caddyfile.gtpl b/3dprinter-octoprint/rootfs/usr/share/tempio/caddy/Caddyfile.gtpl index cbcea39..2f3be6f 100644 --- a/3dprinter-octoprint/rootfs/usr/share/tempio/caddy/Caddyfile.gtpl +++ b/3dprinter-octoprint/rootfs/usr/share/tempio/caddy/Caddyfile.gtpl @@ -27,11 +27,12 @@ {{ end }} reverse_proxy @ingress 127.0.0.1:80 { header_up X-Script-Name {{ .ingress_entry }} - header_up -Origin - header_up Origin 172.30.32.2 - header_up X-Forwarded-For 172.30.32.2 - header_up X-Scheme {scheme} - flush_interval -1 + trusted_proxies private_ranges + # header_up -Origin + # header_up Origin 172.30.32.2 + # header_up X-Forwarded-For 172.30.32.2 + # header_up X-Scheme {scheme} + # flush_interval -1 } } }