Merge pull request #21 from fredrikbaberg/dev_octoprint

Use image; format Caddyfile
This commit is contained in:
Fredrik Baberg 2022-12-19 15:48:58 +01:00 committed by GitHub
commit b420d573da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 19 deletions

View File

@ -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}

View File

@ -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
} }
} }

View File

@ -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:

View File

@ -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 }} {