Simplify proxy config
This commit is contained in:
parent
fca238dcd0
commit
0ea09ae389
@ -1,10 +1,10 @@
|
|||||||
name: "3DPrinter-OctoPrint"
|
name: "3DPrinter-OctoPrint"
|
||||||
version: "2023.01.05"
|
version: "2023.01.0"
|
||||||
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"
|
||||||
ingress: true
|
ingress: false
|
||||||
ingress_stream: true
|
ingress_stream: false
|
||||||
panel_icon: mdi:printer-3d
|
panel_icon: mdi:printer-3d
|
||||||
panel_title: 3DPrinter-OctoPrint
|
panel_title: 3DPrinter-OctoPrint
|
||||||
arch:
|
arch:
|
||||||
|
|||||||
@ -0,0 +1,5 @@
|
|||||||
|
# OctoPrint WebUI through any access (external or internal)
|
||||||
|
:5000 {
|
||||||
|
reverse_proxy http://127.0.0.1:80 {
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/bin/bash
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Prepare OctoPrint
|
# Prepare OctoPrint
|
||||||
# s6-overlay docs: https://github.com/just-containers/s6-overlay
|
# s6-overlay docs: https://github.com/just-containers/s6-overlay
|
||||||
|
|||||||
@ -5,16 +5,16 @@
|
|||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
# Generate proxy configuration for any access
|
# Generate proxy configuration for any access
|
||||||
tempio \
|
# tempio \
|
||||||
-template /usr/share/tempio/caddy/Caddyfile.any.gtpl \
|
# -template /usr/share/tempio/caddy/Caddyfile.any.gtpl \
|
||||||
-out /etc/caddy/sites-enabled/any.caddy
|
# -out /etc/caddy/sites-enabled/any.caddy
|
||||||
|
|
||||||
# Generate proxy configuration for internal access
|
# # Generate proxy configuration for internal access
|
||||||
bashio::var.json \
|
# bashio::var.json \
|
||||||
addon_hostname "$(bashio::addon.hostname)" \
|
# addon_hostname "$(bashio::addon.hostname)" \
|
||||||
| tempio \
|
# | tempio \
|
||||||
-template /usr/share/tempio/caddy/Caddyfile.internal.gtpl \
|
# -template /usr/share/tempio/caddy/Caddyfile.internal.gtpl \
|
||||||
-out /etc/caddy/sites-enabled/internal.caddy
|
# -out /etc/caddy/sites-enabled/internal.caddy
|
||||||
|
|
||||||
# Generate proxy configuration for Ingress access
|
# Generate proxy configuration for Ingress access
|
||||||
# bashio::var.json \
|
# bashio::var.json \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user