Cleanup Caddy config
This commit is contained in:
parent
70f7068818
commit
2be4dcf392
@ -1,5 +1,5 @@
|
|||||||
name: "3DPrinter-OctoPrint"
|
name: "3DPrinter-OctoPrint"
|
||||||
version: "2022.9.016"
|
version: "2022.9.017"
|
||||||
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"
|
||||||
|
|||||||
@ -1,24 +1,14 @@
|
|||||||
:8099 {
|
:{{ .port }} {
|
||||||
@ingress {
|
@ingress {
|
||||||
remote_ip 172.30.32.2
|
remote_ip {{ .interface }}
|
||||||
}
|
}
|
||||||
{{ if .mjpg_streamer }}
|
|
||||||
handle_path /webcam* {
|
|
||||||
reverse_proxy 127.0.0.1:8080 {
|
|
||||||
flush_interval -1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{{ end }}
|
|
||||||
handle {
|
handle {
|
||||||
{{ if .recovery }}
|
reverse_proxy @ingress 127.0.0.1:80 {
|
||||||
rewrite / /recovery
|
header_up X-Script-Name {{ .ingress_entry }}
|
||||||
{{ end }}
|
# header_up -Origin
|
||||||
reverse_proxy @ingress localhost:80 {
|
# header_up Origin 172.30.32.2
|
||||||
header_up X-Script-Name {{ env "ingress_entry" }}
|
# header_up X-Forwarded-For 172.30.32.2
|
||||||
header_up -Origin
|
# flush_interval -1
|
||||||
header_up Origin 172.30.32.2
|
|
||||||
header_up X-Forwarded-For 172.30.32.2
|
|
||||||
flush_interval -1
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user