Use suffix for Caddy config files
This commit is contained in:
parent
d2801c1e14
commit
e5cf716506
@ -1,5 +1,5 @@
|
||||
name: "3DPrinter-OctoPrint"
|
||||
version: "2022.9.018"
|
||||
version: "2022.9.019"
|
||||
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 +1 @@
|
||||
import sites-enabled/*
|
||||
import configs/*.caddy
|
||||
@ -14,7 +14,7 @@ bashio::var.json \
|
||||
camera_host "$(bashio::config 'camera_url')" \
|
||||
| tempio \
|
||||
-template /usr/share/tempio/Caddyfile.ingress.gtpl \
|
||||
-out /etc/caddy/sites-enabled/ingress
|
||||
-out /etc/caddy/configs/ingress.caddy
|
||||
|
||||
# Generate direct access configuration, if enabled.
|
||||
if bashio::var.has_value "$(bashio::addon.port 5000)"; then
|
||||
@ -23,5 +23,5 @@ if bashio::var.has_value "$(bashio::addon.port 5000)"; then
|
||||
port "^$(bashio::addon.port 5000)" \
|
||||
| tempio \
|
||||
-template /usr/share/tempio/Caddyfile.direct.gtpl \
|
||||
-out /etc/caddy/sites-enabled/direct
|
||||
-out /etc/caddy/configs/direct.caddy
|
||||
fi
|
||||
|
||||
@ -1,14 +1,10 @@
|
||||
:{{ .port }} {
|
||||
:0899 {
|
||||
@ingress {
|
||||
remote_ip {{ .interface }}
|
||||
remote_ip 172.30.32.2
|
||||
}
|
||||
handle {
|
||||
reverse_proxy @ingress 127.0.0.1:80 {
|
||||
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
|
||||
# flush_interval -1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user