Add nginx headers directly to template
This commit is contained in:
parent
5c11796c88
commit
eb97ecd770
@ -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"
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user