Simplify X-Script-Name; improve proxy
This commit is contained in:
parent
a48be0ed52
commit
f0e4efc524
@ -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"
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
XDG_CONFIG_HOME="/data/caddy"
|
||||
XDG_DATA_HOME="/data/caddy"
|
||||
XDG_CONFIG_HOME="/data/config"
|
||||
XDG_DATA_HOME="/data/config"
|
||||
5
3dprinter-octoprint/rootfs/scripts/proxy_restart.sh
Normal file
5
3dprinter-octoprint/rootfs/scripts/proxy_restart.sh
Normal file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
|
||||
bashio::log.warning "Restart proxy."
|
||||
|
||||
s6-svc -r /var/run/s6/legacy-services/proxy
|
||||
@ -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}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user