Updates to Ingress, use local image
This commit is contained in:
parent
3e2361087a
commit
388caed235
@ -27,5 +27,4 @@ options:
|
|||||||
recovery: false
|
recovery: false
|
||||||
schema:
|
schema:
|
||||||
recovery: "bool"
|
recovery: "bool"
|
||||||
image: ghcr.io/fredrikbaberg/addon-3dprinter-octoprint-{arch}
|
|
||||||
tmpfs: true
|
tmpfs: true
|
||||||
|
|||||||
@ -16,6 +16,7 @@ bashio::var.json \
|
|||||||
# Generate direct access configuration, if enabled.
|
# Generate direct access configuration, if enabled.
|
||||||
if bashio::var.has_value "$(bashio::addon.port 80)"; then
|
if bashio::var.has_value "$(bashio::addon.port 80)"; then
|
||||||
bashio::var.json \
|
bashio::var.json \
|
||||||
|
interface "$(bashio::addon.ip_address)" \
|
||||||
port "^$(bashio::addon.port 80)" \
|
port "^$(bashio::addon.port 80)" \
|
||||||
| tempio \
|
| tempio \
|
||||||
-template /etc/nginx/templates/direct.gtpl \
|
-template /etc/nginx/templates/direct.gtpl \
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
server {
|
server {
|
||||||
listen {{ .port }} default_server;
|
listen {{ .interface }}:{{ .port }} default_server;
|
||||||
|
|
||||||
include /etc/nginx/includes/server_params.conf;
|
include /etc/nginx/includes/server_params.conf;
|
||||||
include /etc/nginx/includes/proxy_params.conf;
|
include /etc/nginx/includes/proxy_params.conf;
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/execlineb -S0
|
#!/usr/bin/execlineb -S0
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Add-on: mjpg-streamer
|
# Add-on: 3dprinter-octoprint
|
||||||
# Take down the S6 supervision tree when mjpg-streamer fails
|
# Take down the S6 supervision tree when OctoPrint fails
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
if -n { s6-test $# -ne 0 }
|
if -n { s6-test $# -ne 0 }
|
||||||
if -n { s6-test ${1} -eq 256 }
|
if -n { s6-test ${1} -eq 256 }
|
||||||
|
|||||||
@ -5,4 +5,4 @@
|
|||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
## Run your program
|
## 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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user