diff --git a/3dprinter-octoprint/config.yaml b/3dprinter-octoprint/config.yaml index d12b51e..f06360c 100644 --- a/3dprinter-octoprint/config.yaml +++ b/3dprinter-octoprint/config.yaml @@ -1,5 +1,5 @@ name: "3DPrinter-OctoPrint" -version: "2022.9.016" +version: "2022.9.017" 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/etc/caddy/sites-enabled/.gitkeep b/3dprinter-octoprint/rootfs/etc/caddy/sites-enabled/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/3dprinter-octoprint/rootfs/usr/share/tempio/Caddyfile.ingress.gtpl b/3dprinter-octoprint/rootfs/usr/share/tempio/Caddyfile.ingress.gtpl index 0d586b6..4e04120 100644 --- a/3dprinter-octoprint/rootfs/usr/share/tempio/Caddyfile.ingress.gtpl +++ b/3dprinter-octoprint/rootfs/usr/share/tempio/Caddyfile.ingress.gtpl @@ -1,24 +1,14 @@ -:8099 { +:{{ .port }} { @ingress { - remote_ip 172.30.32.2 + remote_ip {{ .interface }} } - {{ if .mjpg_streamer }} - handle_path /webcam* { - reverse_proxy 127.0.0.1:8080 { - flush_interval -1 - } - } - {{ end }} handle { - {{ if .recovery }} - rewrite / /recovery - {{ end }} - reverse_proxy @ingress localhost:80 { - header_up X-Script-Name {{ env "ingress_entry" }} - header_up -Origin - header_up Origin 172.30.32.2 - header_up X-Forwarded-For 172.30.32.2 - flush_interval -1 + 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 + # flush_interval -1 } } -} \ No newline at end of file +}