Use port 5000

This commit is contained in:
Fredrik Baberg 2022-07-11 17:02:25 +02:00
parent 3dc492ebf6
commit cc65035aeb
2 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
name: "3DPrinter-OctoPrint" name: "3DPrinter-OctoPrint"
version: "2022.7.006" version: "2022.7.007"
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"
@ -20,9 +20,9 @@ gpio: true
uart: true uart: true
usb: true usb: true
ports: ports:
80/tcp: null 5000/tcp: null
ports_description: ports_description:
80/tcp: Web-based interface (Not required for Ingress) 5000/tcp: Web-based interface (Not required for Ingress)
options: options:
recovery: false recovery: false
schema: schema:

View File

@ -14,10 +14,10 @@ bashio::var.json \
-out /etc/nginx/servers/ingress.conf -out /etc/nginx/servers/ingress.conf
# 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 5000)"; then
bashio::var.json \ bashio::var.json \
interface "$(bashio::addon.ip_address)" \ interface "$(bashio::addon.ip_address)" \
port "^$(bashio::addon.port 80)" \ port "^$(bashio::addon.port 5000)" \
| tempio \ | tempio \
-template /etc/nginx/templates/direct.gtpl \ -template /etc/nginx/templates/direct.gtpl \
-out /etc/nginx/servers/direct.conf -out /etc/nginx/servers/direct.conf