diff --git a/3dprinter-octoprint/config.yaml b/3dprinter-octoprint/config.yaml index 7bc0019..d63d231 100644 --- a/3dprinter-octoprint/config.yaml +++ b/3dprinter-octoprint/config.yaml @@ -1,5 +1,5 @@ name: "3DPrinter-OctoPrint" -version: "2022.12.0" +version: "2022.12.01" 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" @@ -28,5 +28,5 @@ options: mode: normal schema: camera_url: "url?" - mode: "list(normal|recovery|reverse_proxy_test)?" + mode: "list(normal|recovery|reverse_proxy_test|camera)?" tmpfs: true diff --git a/3dprinter-octoprint/rootfs/usr/share/tempio/Caddyfile.gtpl b/3dprinter-octoprint/rootfs/usr/share/tempio/Caddyfile.gtpl index 73a9340..a6853e0 100644 --- a/3dprinter-octoprint/rootfs/usr/share/tempio/Caddyfile.gtpl +++ b/3dprinter-octoprint/rootfs/usr/share/tempio/Caddyfile.gtpl @@ -22,6 +22,8 @@ rewrite / /recovery {{ else if eq .mode "reverse_proxy_test" }} rewrite / /reverse_proxy_test + {{ else if eq .mode "camera" }} + rewrite / /camera {{ end }} reverse_proxy @ingress 127.0.0.1:80 { header_up X-Script-Name {{ .ingress_entry }}