Modify to suggestion of Caddy file
This commit is contained in:
parent
f0e4efc524
commit
f6484bdc2d
@ -0,0 +1,3 @@
|
|||||||
|
# Dev
|
||||||
|
> image: ghcr.io/fredrikbaberg/addon-3dprinter-octoprint-{arch}
|
||||||
|
|
||||||
@ -1,5 +1,5 @@
|
|||||||
name: "3DPrinter-OctoPrint"
|
name: "3DPrinter-OctoPrint"
|
||||||
version: "2022.9.027"
|
version: "2022.9.029"
|
||||||
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,8 +26,9 @@ ports_description:
|
|||||||
options:
|
options:
|
||||||
camera_url: "http://b7aa59c4-camera-mjpg-streamer/"
|
camera_url: "http://b7aa59c4-camera-mjpg-streamer/"
|
||||||
recovery: false
|
recovery: false
|
||||||
|
ssl_fix: false
|
||||||
schema:
|
schema:
|
||||||
camera_url: "url?"
|
camera_url: "url?"
|
||||||
recovery: "bool"
|
recovery: "bool"
|
||||||
image: ghcr.io/fredrikbaberg/addon-3dprinter-octoprint-{arch}
|
ssl_fix: "bool?"
|
||||||
tmpfs: true
|
tmpfs: true
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
import configs/*.caddy
|
import configs/*.caddy
|
||||||
|
|||||||
@ -1,2 +1,2 @@
|
|||||||
XDG_CONFIG_HOME="/data/config"
|
XDG_CONFIG_HOME="/data/config"
|
||||||
XDG_DATA_HOME="/data/config"
|
XDG_DATA_HOME="/data/config"
|
||||||
|
|||||||
@ -11,6 +11,7 @@ folder:
|
|||||||
generated: /tmp/octoprint/generated
|
generated: /tmp/octoprint/generated
|
||||||
timelapse_tmp: /tmp/octoprint/timelapse/tmp
|
timelapse_tmp: /tmp/octoprint/timelapse/tmp
|
||||||
server:
|
server:
|
||||||
|
allowFraming: true
|
||||||
commands:
|
commands:
|
||||||
serverRestartCommand: /scripts/octoprint_restart.sh
|
serverRestartCommand: /scripts/octoprint_restart.sh
|
||||||
systemRestartCommand: /scripts/system_restart.sh
|
systemRestartCommand: /scripts/system_restart.sh
|
||||||
|
|||||||
@ -1,14 +1,15 @@
|
|||||||
# {
|
|
||||||
# debug
|
|
||||||
# }
|
|
||||||
:8099 {
|
:8099 {
|
||||||
@ingress {
|
@ingress {
|
||||||
remote_ip 172.30.32.2
|
remote_ip 172.30.32.2
|
||||||
}
|
}
|
||||||
handle {
|
handle_path {http.request.header.X-Ingress-Path}/* {
|
||||||
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 {http.request.header.X-Ingress-Path}/
|
||||||
header_up X-Script-Name {http.request.header.X-Ingress-Path}
|
header_up -Origin
|
||||||
|
header_up Origin 172.30.32.2
|
||||||
|
header_up X-Forwarded-For 172.30.32.2
|
||||||
|
header_up X-Scheme {scheme}
|
||||||
|
flush_interval -1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user