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