diff --git a/3dprinter-octoprint/config.yaml b/3dprinter-octoprint/config.yaml index d629837..8da6a44 100644 --- a/3dprinter-octoprint/config.yaml +++ b/3dprinter-octoprint/config.yaml @@ -1,5 +1,5 @@ name: "3DPrinter-OctoPrint" -version: "2022.7.008" +version: "2022.7.009" 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 38dadd1..e3e89c6 100644 --- a/3dprinter-octoprint/rootfs/etc/nginx/templates/ingress.gtpl +++ b/3dprinter-octoprint/rootfs/etc/nginx/templates/ingress.gtpl @@ -9,7 +9,18 @@ server { deny all; proxy_pass http://backend; + 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 }}; - add_header X-Forwarded-For 172.30.32.2 + proxy_http_version 1.1; + + client_max_body_size 0; + + proxy_set_header X-Forwarded-For 172.30.32.2; + add_header Origin 172.30.32.2; } }