Add install/config support for haproxy like on octopi
LitterBugs opened this issue · 2 comments
First off, THANK YOU so much for putting this script together. I was working through setting up OctoPrint manually on armbian on an Asus Tinkerboard S and was thinking, this should be easily scripted. Found your script before starting my second install and gave it a go. WORKS GREAT!
The one feature that appears to be missing is installing and configuring haproxy. I can play around with it to get it functioning like on OctoPi and provide feedback that could be scripted.
Regards,
Karl
AKA LitterBug
install haproxy package "sudo apt install haproxy"
; Files required from OctoPi image:
/etc/ssl/snakeoil.pem ; <-- Unsigned generic SSL certificate. haproxy will not start with SSL enabled and no cert
/etc/haproxy/haproxy.cfg ; <-- default octopi config for haproxy pointing to OctoPrint and Webcam on 80 & 443
; error code message for OctoPi haproxy config
/etc/haproxy/errors/503-no-octoprint.http
/etc/haproxy/errors/503-no-webcam.http
/etc/haproxy/errors/503-no-webcam-hls.http
Regards,
Karl
AKA LitterBug
Thank you, when I have time I will try to add support for haproxy