Etherlord / octoprint_installer

Octoprint installer for Armbian systems
39 stars 8 forks source link

Add install/config support for haproxy like on octopi #5

Open LitterBugs opened 2 years ago

LitterBugs commented 2 years ago

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

LitterBugs commented 2 years ago

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

Etherlord commented 1 year ago

Thank you, when I have time I will try to add support for haproxy