Autologin using Ingress
This commit is contained in:
parent
be245cdda8
commit
9195f435c8
@ -1,5 +1,5 @@
|
|||||||
name: "3DPrinter-OctoPrint"
|
name: "3DPrinter-OctoPrint"
|
||||||
version: "2022.9.011"
|
version: "2022.9.012"
|
||||||
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"
|
||||||
|
|||||||
@ -11,16 +11,11 @@ server {
|
|||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For 172.30.32.2; # Autologin since using Home Assistant Ingress.
|
||||||
proxy_set_header X-Forwarded-Host $http_host;
|
proxy_set_header X-Forwarded-Host $http_host;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
|
||||||
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-For 172.30.32.2; # For autologin through Ingress.
|
|
||||||
# proxy_set_header X-Forwarded-Server $host;
|
|
||||||
# proxy_set_header X-Forwarded-Port $port;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location /webcam/ {
|
location /webcam/ {
|
||||||
@ -32,3 +27,9 @@ server {
|
|||||||
root html;
|
root html;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# The following headers/settings are currently not used.
|
||||||
|
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
# proxy_set_header X-Forwarded-Server $host;
|
||||||
|
# proxy_set_header X-Forwarded-Port $port;
|
||||||
|
# proxy_set_header X-Forwarded-Proto $scheme; # This would set session_P80_R even if access is through HTTPS (443).
|
||||||
Loading…
Reference in New Issue
Block a user