Merge pull request #13 from fredrikbaberg/dev

Update ports of OctoPrint
This commit is contained in:
Fredrik Baberg 2022-07-11 14:48:55 +02:00 committed by GitHub
commit ad1fee95dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
name: "3DPrinter-OctoPrint" name: "3DPrinter-OctoPrint"
version: "2022.7.003" version: "2022.7.004"
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:
5000/tcp: null 80/tcp: null
ports_description: ports_description:
5000/tcp: Web-based interface (Not required for Ingress) 80/tcp: Web-based interface (Not required for Ingress)
options: options:
recovery: false recovery: false
schema: schema:

View File

@ -14,9 +14,9 @@ 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 5000)"; then if bashio::var.has_value "$(bashio::addon.port 80)"; then
bashio::var.json \ bashio::var.json \
port "^$(bashio::addon.port 5000)" \ port "^$(bashio::addon.port 80)" \
| 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