Updates to Ingress, use local image

This commit is contained in:
Fredrik Baberg 2022-07-11 16:23:59 +02:00
parent 3e2361087a
commit 388caed235
5 changed files with 5 additions and 5 deletions

View File

@ -27,5 +27,4 @@ options:
recovery: false
schema:
recovery: "bool"
image: ghcr.io/fredrikbaberg/addon-3dprinter-octoprint-{arch}
tmpfs: true

View File

@ -16,6 +16,7 @@ bashio::var.json \
# Generate direct access configuration, if enabled.
if bashio::var.has_value "$(bashio::addon.port 80)"; then
bashio::var.json \
interface "$(bashio::addon.ip_address)" \
port "^$(bashio::addon.port 80)" \
| tempio \
-template /etc/nginx/templates/direct.gtpl \

View File

@ -1,5 +1,5 @@
server {
listen {{ .port }} default_server;
listen {{ .interface }}:{{ .port }} default_server;
include /etc/nginx/includes/server_params.conf;
include /etc/nginx/includes/proxy_params.conf;

View File

@ -1,7 +1,7 @@
#!/usr/bin/execlineb -S0
# ==============================================================================
# Add-on: mjpg-streamer
# Take down the S6 supervision tree when mjpg-streamer fails
# Add-on: 3dprinter-octoprint
# Take down the S6 supervision tree when OctoPrint fails
# ==============================================================================
if -n { s6-test $# -ne 0 }
if -n { s6-test ${1} -eq 256 }

View File

@ -5,4 +5,4 @@
# ==============================================================================
## Run your program
exec octoprint serve --iknowwhatimdoing --host 0.0.0.0 --port 5000 --basedir /data/config/octoprint
exec octoprint serve --iknowwhatimdoing --host 127.0.0.1 --port 5000 --basedir /data/config/octoprint --debug