Camera improvements (#94)

* Add option to set camera url

* Update proxy configuration for camera

* Update 3Dprinter-OctoPrint camera documentation; add reverse proxy option.
This commit is contained in:
Fredrik Baberg
2024-01-21 22:36:04 +01:00
committed by GitHub
parent 7c95db9ba2
commit 0f5cdd3f5e
5 changed files with 31 additions and 19 deletions

View File

@@ -2,6 +2,14 @@
# * Home-Assistant OctoPrint integration.
# * Accessing OctoPrint WebUI through external port.
:5000 {
{{ if .camera_url }}
handle_path /camera* {
reverse_proxy {{ .camera_url }} {
trusted_proxies {{ .trusted_proxies }}
flush_interval -1
}
}
{{ end }}
reverse_proxy http://127.0.0.1:80 {
trusted_proxies {{ .trusted_proxies }}
}