Updates for proxy

This commit is contained in:
Fredrik Baberg 2022-07-11 19:25:58 +02:00
parent 9a0dc39669
commit 6b5dfc5fe6
3 changed files with 6 additions and 4 deletions

View File

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

View File

@ -7,6 +7,9 @@ server {
location / {
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;
@ -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;
}
}

View File

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