Restore proxy config, even if it doesn't work with 1.8.4.
This commit is contained in:
parent
a589351f4a
commit
67bb854462
@ -8,6 +8,9 @@ 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 Host $http_host;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
@ -18,12 +21,6 @@ server {
|
|||||||
proxy_set_header X-Script-Name {{ .ingress_entry }};
|
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 X-Forwarded-Scheme $scheme;
|
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
|
||||||
|
|
||||||
proxy_set_header X-Forwarded-For 172.30.32.2;
|
|
||||||
proxy_set_header Origin 172.30.32.2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location /webcam/ {
|
location /webcam/ {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user