Add headers to Caddy file; use pre-built image
This commit is contained in:
parent
288a55963c
commit
dcc0a21404
@ -1,5 +1,5 @@
|
|||||||
name: "3DPrinter-OctoPrint"
|
name: "3DPrinter-OctoPrint"
|
||||||
version: "2022.9.032"
|
version: "2022.9.033"
|
||||||
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"
|
||||||
@ -26,9 +26,8 @@ ports_description:
|
|||||||
options:
|
options:
|
||||||
camera_url: "http://b7aa59c4-camera-mjpg-streamer/"
|
camera_url: "http://b7aa59c4-camera-mjpg-streamer/"
|
||||||
recovery: false
|
recovery: false
|
||||||
sslFix: false
|
|
||||||
schema:
|
schema:
|
||||||
camera_url: "url?"
|
camera_url: "url?"
|
||||||
recovery: "bool"
|
recovery: "bool"
|
||||||
sslFix: "bool?"
|
|
||||||
tmpfs: true
|
tmpfs: true
|
||||||
|
image: ghcr.io/fredrikbaberg/addon-3dprinter-octoprint-{arch}
|
||||||
@ -5,8 +5,12 @@
|
|||||||
uri strip_prefix {{ .ingress_entry }}
|
uri strip_prefix {{ .ingress_entry }}
|
||||||
handle {
|
handle {
|
||||||
reverse_proxy @ingress 127.0.0.1:5000 {
|
reverse_proxy @ingress 127.0.0.1:5000 {
|
||||||
header_up X-Script-Name {{ .ingress_entry }}/
|
header_up X-Script-Name {{ .ingress_entry }}
|
||||||
|
header_up -Origin
|
||||||
|
header_up Origin 172.30.32.2
|
||||||
|
header_up X-Forwarded-For 172.30.32.2
|
||||||
header_up X-Scheme {scheme}
|
header_up X-Scheme {scheme}
|
||||||
|
flush_interval -1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user