Modify to suggestion of Caddy file

This commit is contained in:
Fredrik Baberg 2022-10-04 23:28:15 +02:00
parent f0e4efc524
commit f6484bdc2d
6 changed files with 16 additions and 10 deletions

View File

@ -0,0 +1,3 @@
# Dev
> image: ghcr.io/fredrikbaberg/addon-3dprinter-octoprint-{arch}

View File

@ -1,5 +1,5 @@
name: "3DPrinter-OctoPrint"
version: "2022.9.027"
version: "2022.9.029"
slug: "3dprinter-octoprint"
description: "OctoPrint as an addon, no additional bells and whistles."
url: "https://github.com/fredrikbaberg/home-assistant-addons/tree/main/3dprinter-octoprint"
@ -26,8 +26,9 @@ ports_description:
options:
camera_url: "http://b7aa59c4-camera-mjpg-streamer/"
recovery: false
ssl_fix: false
schema:
camera_url: "url?"
recovery: "bool"
image: ghcr.io/fredrikbaberg/addon-3dprinter-octoprint-{arch}
ssl_fix: "bool?"
tmpfs: true

View File

@ -1 +1 @@
import configs/*.caddy
import configs/*.caddy

View File

@ -1,2 +1,2 @@
XDG_CONFIG_HOME="/data/config"
XDG_DATA_HOME="/data/config"
XDG_DATA_HOME="/data/config"

View File

@ -11,6 +11,7 @@ folder:
generated: /tmp/octoprint/generated
timelapse_tmp: /tmp/octoprint/timelapse/tmp
server:
allowFraming: true
commands:
serverRestartCommand: /scripts/octoprint_restart.sh
systemRestartCommand: /scripts/system_restart.sh

View File

@ -1,14 +1,15 @@
# {
# debug
# }
:8099 {
@ingress {
remote_ip 172.30.32.2
}
handle {
handle_path {http.request.header.X-Ingress-Path}/* {
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
}
}
}