Change internal port to 80
This commit is contained in:
parent
f0ba54db2d
commit
92e83b7348
@ -1,5 +1,5 @@
|
|||||||
name: "3DPrinter-OctoPrint"
|
name: "3DPrinter-OctoPrint"
|
||||||
version: "2022.10.01"
|
version: "2022.10.02"
|
||||||
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"
|
||||||
|
|||||||
@ -7,4 +7,4 @@
|
|||||||
bashio::log.info "Starting OctoPrint..."
|
bashio::log.info "Starting OctoPrint..."
|
||||||
|
|
||||||
## Run your program
|
## Run your program
|
||||||
exec octoprint serve --iknowwhatimdoing --host 127.0.0.1 --port 5000 --basedir /data/config/octoprint
|
exec octoprint serve --iknowwhatimdoing --host 127.0.0.1 --port 80 --basedir /data/config/octoprint
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
# Wait for web server to be available
|
# Wait for web server to be available
|
||||||
bashio::net.wait_for 5000
|
bashio::net.wait_for 80
|
||||||
|
|
||||||
bashio::log.info "Starting proxy..."
|
bashio::log.info "Starting proxy..."
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
{{ if .recovery }}
|
{{ if .recovery }}
|
||||||
rewrite / /recovery
|
rewrite / /recovery
|
||||||
{{ end }}
|
{{ end }}
|
||||||
reverse_proxy @ingress 127.0.0.1:5000 {
|
reverse_proxy @ingress 127.0.0.1:80 {
|
||||||
header_up X-Script-Name {{ .ingress_entry }}
|
header_up X-Script-Name {{ .ingress_entry }}
|
||||||
header_up -Origin
|
header_up -Origin
|
||||||
header_up Origin 172.30.32.2
|
header_up Origin 172.30.32.2
|
||||||
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
# OctoPrint WebUI
|
# OctoPrint WebUI
|
||||||
:5000 {
|
:5000 {
|
||||||
reverse_proxy http://127.0.0.1:5000 {
|
reverse_proxy http://127.0.0.1:80 {
|
||||||
header_up X-Scheme {scheme}
|
header_up X-Scheme {scheme}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user