Cleanup nginx config

This commit is contained in:
Fredrik Baberg 2022-09-26 21:23:47 +02:00
parent 978943ef96
commit 4cc9868884
2 changed files with 9 additions and 12 deletions

View File

@ -1,5 +1,5 @@
name: "3DPrinter-OctoPrint" name: "3DPrinter-OctoPrint"
version: "2022.9.004" version: "2022.9.005"
slug: "3dprinter-octoprint" slug: "3dprinter-octoprint"
description: "OctoPrint as an addon, no additional bells and whistles." description: "OctoPrint as an addon, no additional bells and whistles."
url: "https://github.com/fredrikbaberg/home-assistant-addons/tree/main/3dprinter-octoprint" url: "https://github.com/fredrikbaberg/home-assistant-addons/tree/main/3dprinter-octoprint"

View File

@ -8,20 +8,17 @@ server {
allow 172.30.32.2; allow 172.30.32.2;
deny all; deny all;
proxy_set_header X-Forwarded-For 172.30.32.2;
proxy_set_header Origin 172.30.32.2;
proxy_pass http://octoprint/; # make sure to add trailing slash here! proxy_pass http://octoprint/; # make sure to add trailing slash here!
proxy_set_header Host $http_host; proxy_set_header X-Forwarded-For 172.30.32.2, $proxy_add_x_forwarded_for; # This is intentional, access through Ingress should use "autologin local".
proxy_set_header Upgrade $http_upgrade; proxy_set_header X-Forwarded-Host $host
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 }};
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Script-Name {{ .ingress_entry }};
proxy_http_version 1.1; proxy_http_version 1.1;
client_max_body_size 0; client_max_body_size 0;
# 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;
} }
location /webcam/ { location /webcam/ {