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