Merge pull request #21 from fredrikbaberg/dev_octoprint
Use image; format Caddyfile
This commit is contained in:
commit
b420d573da
@ -1,5 +1,5 @@
|
|||||||
name: "3DPrinter-OctoPrint"
|
name: "3DPrinter-OctoPrint"
|
||||||
version: "2022.12.01"
|
version: "2022.12.02"
|
||||||
slug: "3dprinter-octoprint"
|
slug: "3dprinter-octoprint"
|
||||||
description: "OctoPrint as an addon, no additional bells and whistles."
|
description: "OctoPrint as an addon, no additional bells and whistles."
|
||||||
url: "https://github.com/fredrikbaberg/home-assistant-addons/tree/main/3dprinter-octoprint"
|
url: "https://github.com/fredrikbaberg/home-assistant-addons/tree/main/3dprinter-octoprint"
|
||||||
@ -30,3 +30,4 @@ schema:
|
|||||||
camera_url: "url?"
|
camera_url: "url?"
|
||||||
mode: "list(normal|recovery|reverse_proxy_test|camera)?"
|
mode: "list(normal|recovery|reverse_proxy_test|camera)?"
|
||||||
tmpfs: true
|
tmpfs: true
|
||||||
|
image: ghcr.io/fredrikbaberg/addon-3dprinter-octoprint-{arch}
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
# Temporary file, will be overwritten on launch.
|
# Temporary file, will be overwritten on launch.
|
||||||
{
|
{
|
||||||
debug
|
debug
|
||||||
log {
|
log {
|
||||||
format console
|
format console
|
||||||
output file /var/log/caddy/caddy.log
|
output file /var/log/caddy/caddy.log
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
accessControl:
|
# accessControl:
|
||||||
autologinAs: homeassistant
|
# autologinAs: homeassistant
|
||||||
autologinLocal: true
|
# autologinLocal: true
|
||||||
localNetworks:
|
# localNetworks:
|
||||||
- 127.0.0.0/8
|
# - 127.0.0.0/8
|
||||||
- ::1/128
|
# - ::1/128
|
||||||
# - 172.30.32.2
|
# - 172.30.32.2
|
||||||
api:
|
api:
|
||||||
allowCrossOrigin: true
|
allowCrossOrigin: true
|
||||||
folder:
|
folder:
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
debug
|
debug
|
||||||
log {
|
log {
|
||||||
format console
|
format console
|
||||||
output file /var/log/caddy/caddy.log
|
output file /var/log/caddy/caddy.log
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:8099 {
|
:8099 {
|
||||||
@ -16,7 +16,6 @@
|
|||||||
reverse_proxy @ingress {{ .camera_host }} {
|
reverse_proxy @ingress {{ .camera_host }} {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
handle {
|
handle {
|
||||||
{{ if eq .mode "camera" }}
|
{{ if eq .mode "camera" }}
|
||||||
reverse_proxy @ingress {{ .camera_host }} {
|
reverse_proxy @ingress {{ .camera_host }} {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user