Updates for proxy
This commit is contained in:
parent
9a0dc39669
commit
6b5dfc5fe6
@ -1,5 +1,5 @@
|
|||||||
name: "3DPrinter-OctoPrint"
|
name: "3DPrinter-OctoPrint"
|
||||||
version: "2022.7.015"
|
version: "2022.7.016"
|
||||||
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"
|
||||||
|
|||||||
@ -7,6 +7,9 @@ server {
|
|||||||
location / {
|
location / {
|
||||||
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 Host $http_host;
|
||||||
@ -19,8 +22,5 @@ server {
|
|||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
|
||||||
client_max_body_size 0;
|
client_max_body_size 0;
|
||||||
|
|
||||||
proxy_set_header X-Forwarded-For 172.30.32.2;
|
|
||||||
proxy_set_header Origin 172.30.32.2;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,6 +2,8 @@ accessControl:
|
|||||||
autologinAs: homeassistant
|
autologinAs: homeassistant
|
||||||
autologinLocal: true
|
autologinLocal: true
|
||||||
localNetworks:
|
localNetworks:
|
||||||
|
- 127.0.0.0/8
|
||||||
|
- ::1/128
|
||||||
- 172.30.32.2
|
- 172.30.32.2
|
||||||
folder:
|
folder:
|
||||||
generated: /tmp/octoprint/generated
|
generated: /tmp/octoprint/generated
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user