Add X-Script-Name for camera

This commit is contained in:
Fredrik Baberg 2022-07-11 23:54:39 +02:00
parent 67f7dcf9fb
commit d65522a094
2 changed files with 2 additions and 1 deletions

View File

@ -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"

View File

@ -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;
}