Simplify X-Script-Name; improve proxy

This commit is contained in:
Fredrik Baberg 2022-10-03 03:00:51 +02:00
parent a48be0ed52
commit f0e4efc524
4 changed files with 13 additions and 4 deletions

View File

@ -1,5 +1,5 @@
name: "3DPrinter-OctoPrint"
version: "2022.9.026"
version: "2022.9.027"
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"

View File

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

View File

@ -0,0 +1,5 @@
#!/usr/bin/with-contenv bashio
bashio::log.warning "Restart proxy."
s6-svc -r /var/run/s6/legacy-services/proxy

View File

@ -1,10 +1,14 @@
# {
# debug
# }
:8099 {
@ingress {
remote_ip 172.30.32.2
}
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 X-Script-Name {http.request.header.X-Ingress-Path}
}
}
}