Add headers to Caddy file; use pre-built image

This commit is contained in:
Fredrik Baberg 2022-10-06 11:16:12 +02:00
parent 288a55963c
commit dcc0a21404
2 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,5 @@
name: "3DPrinter-OctoPrint"
version: "2022.9.032"
version: "2022.9.033"
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,9 +26,8 @@ ports_description:
options:
camera_url: "http://b7aa59c4-camera-mjpg-streamer/"
recovery: false
sslFix: false
schema:
camera_url: "url?"
recovery: "bool"
sslFix: "bool?"
tmpfs: true
image: ghcr.io/fredrikbaberg/addon-3dprinter-octoprint-{arch}

View File

@ -5,8 +5,12 @@
uri strip_prefix {{ .ingress_entry }}
handle {
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}
flush_interval -1
}
}
}