From b4da47bf41f0be245a8892badedc0a8ade34dc9a Mon Sep 17 00:00:00 2001 From: Fredrik Baberg Date: Tue, 12 Jul 2022 01:36:07 +0200 Subject: [PATCH] Cleanup webcam config --- 3dprinter-octoprint/config.yaml | 2 +- .../rootfs/etc/nginx/templates/ingress.gtpl | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/3dprinter-octoprint/config.yaml b/3dprinter-octoprint/config.yaml index 93afd44..adb0e0d 100644 --- a/3dprinter-octoprint/config.yaml +++ b/3dprinter-octoprint/config.yaml @@ -1,5 +1,5 @@ name: "3DPrinter-OctoPrint" -version: "2022.7.022" +version: "2022.7.023" 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 ab7610d..06e7027 100644 --- a/3dprinter-octoprint/rootfs/etc/nginx/templates/ingress.gtpl +++ b/3dprinter-octoprint/rootfs/etc/nginx/templates/ingress.gtpl @@ -26,14 +26,5 @@ server { location /webcam/ { proxy_pass {{ .camera_host }}; - proxy_set_header Host $http_host; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - 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; } }