From d65522a0945322b66edca53774a30f415073b37c Mon Sep 17 00:00:00 2001 From: Fredrik Baberg Date: Mon, 11 Jul 2022 23:54:39 +0200 Subject: [PATCH] Add X-Script-Name for camera --- 3dprinter-octoprint/config.yaml | 2 +- 3dprinter-octoprint/rootfs/etc/nginx/templates/ingress.gtpl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/3dprinter-octoprint/config.yaml b/3dprinter-octoprint/config.yaml index 2c398f9..93afd44 100644 --- a/3dprinter-octoprint/config.yaml +++ b/3dprinter-octoprint/config.yaml @@ -1,5 +1,5 @@ name: "3DPrinter-OctoPrint" -version: "2022.7.021" +version: "2022.7.022" 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/nginx/templates/ingress.gtpl b/3dprinter-octoprint/rootfs/etc/nginx/templates/ingress.gtpl index 007e83d..ab7610d 100644 --- a/3dprinter-octoprint/rootfs/etc/nginx/templates/ingress.gtpl +++ b/3dprinter-octoprint/rootfs/etc/nginx/templates/ingress.gtpl @@ -32,6 +32,7 @@ server { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Scheme $scheme; + proxy_set_header X-Script-Name {{ .ingress_entry }}/webcam; proxy_http_version 1.1; client_max_body_size 0; }