Trust Ingress IP instead of private_ranges
This commit is contained in:
parent
86c0476b84
commit
e21dad4aeb
@ -1,5 +1,5 @@
|
|||||||
name: "3DPrinter-OctoPrint"
|
name: "3DPrinter-OctoPrint"
|
||||||
version: "2022.12.03"
|
version: "2022.12.01"
|
||||||
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"
|
||||||
|
|||||||
@ -19,7 +19,9 @@
|
|||||||
|
|
||||||
handle {
|
handle {
|
||||||
{{ if eq .mode "camera" }}
|
{{ if eq .mode "camera" }}
|
||||||
reverse_proxy @ingress {{ .camera_host }} {}
|
reverse_proxy @ingress {{ .camera_host }} {
|
||||||
|
trusted_proxies 172.30.32.2
|
||||||
|
}
|
||||||
{{ else if eq .mode "recovery" }}
|
{{ else if eq .mode "recovery" }}
|
||||||
rewrite / /recovery
|
rewrite / /recovery
|
||||||
{{ else if eq .mode "reverse_proxy_test" }}
|
{{ else if eq .mode "reverse_proxy_test" }}
|
||||||
@ -27,7 +29,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
reverse_proxy @ingress 127.0.0.1:80 {
|
reverse_proxy @ingress 127.0.0.1:80 {
|
||||||
header_up X-Script-Name {{ .ingress_entry }}
|
header_up X-Script-Name {{ .ingress_entry }}
|
||||||
trusted_proxies private_ranges
|
trusted_proxies 172.30.32.2
|
||||||
# header_up -Origin
|
# header_up -Origin
|
||||||
# header_up Origin 172.30.32.2
|
# header_up Origin 172.30.32.2
|
||||||
# header_up X-Forwarded-For 172.30.32.2
|
# header_up X-Forwarded-For 172.30.32.2
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user