Update ports of OctoPrint
This commit is contained in:
parent
c94eb73580
commit
09a5438c71
@ -1,5 +1,5 @@
|
||||
name: "3DPrinter-OctoPrint"
|
||||
version: "2022.7.003"
|
||||
version: "2022.7.004"
|
||||
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"
|
||||
@ -20,9 +20,9 @@ gpio: true
|
||||
uart: true
|
||||
usb: true
|
||||
ports:
|
||||
5000/tcp: null
|
||||
80/tcp: null
|
||||
ports_description:
|
||||
5000/tcp: Web-based interface (Not required for Ingress)
|
||||
80/tcp: Web-based interface (Not required for Ingress)
|
||||
options:
|
||||
recovery: false
|
||||
schema:
|
||||
|
||||
@ -14,9 +14,9 @@ bashio::var.json \
|
||||
-out /etc/nginx/servers/ingress.conf
|
||||
|
||||
# Generate direct access configuration, if enabled.
|
||||
if bashio::var.has_value "$(bashio::addon.port 5000)"; then
|
||||
if bashio::var.has_value "$(bashio::addon.port 80)"; then
|
||||
bashio::var.json \
|
||||
port "^$(bashio::addon.port 5000)" \
|
||||
port "^$(bashio::addon.port 80)" \
|
||||
| tempio \
|
||||
-template /etc/nginx/templates/direct.gtpl \
|
||||
-out /etc/nginx/servers/direct.conf
|
||||
|
||||
Loading…
Reference in New Issue
Block a user