From dcc0a2140436f6ed9516ef35643cb504ccc13aa6 Mon Sep 17 00:00:00 2001 From: Fredrik Baberg Date: Thu, 6 Oct 2022 11:16:12 +0200 Subject: [PATCH] Add headers to Caddy file; use pre-built image --- 3dprinter-octoprint/config.yaml | 5 ++--- .../rootfs/usr/share/tempio/Caddyfile.ingress.gtpl | 6 +++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/3dprinter-octoprint/config.yaml b/3dprinter-octoprint/config.yaml index e65eae3..dc9b1ff 100644 --- a/3dprinter-octoprint/config.yaml +++ b/3dprinter-octoprint/config.yaml @@ -1,5 +1,5 @@ name: "3DPrinter-OctoPrint" -version: "2022.9.032" +version: "2022.9.033" 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" @@ -26,9 +26,8 @@ ports_description: options: camera_url: "http://b7aa59c4-camera-mjpg-streamer/" recovery: false - sslFix: false schema: camera_url: "url?" recovery: "bool" - sslFix: "bool?" tmpfs: true +image: ghcr.io/fredrikbaberg/addon-3dprinter-octoprint-{arch} \ No newline at end of file diff --git a/3dprinter-octoprint/rootfs/usr/share/tempio/Caddyfile.ingress.gtpl b/3dprinter-octoprint/rootfs/usr/share/tempio/Caddyfile.ingress.gtpl index b593543..22ff3eb 100644 --- a/3dprinter-octoprint/rootfs/usr/share/tempio/Caddyfile.ingress.gtpl +++ b/3dprinter-octoprint/rootfs/usr/share/tempio/Caddyfile.ingress.gtpl @@ -5,8 +5,12 @@ uri strip_prefix {{ .ingress_entry }} handle { reverse_proxy @ingress 127.0.0.1:5000 { - header_up X-Script-Name {{ .ingress_entry }}/ + 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 } } }