HAPROXY not working properly?

What is the problem?
haproxy is not redirecting traffic to port 80
What did you already try to solve it?
compare configs with my other octoprint server

Logs (syslog, dmesg, ... no logs, no support)

Additional information about your network (Hardware you are trying to connect to, hardware you are trying to connect from, router, access point, used operating systems, ...)

I have a new Octoprint server which I've built following the official directions for a linux build. I'm using dietpi on a nanopc-t4. I have done this build countless times without issue. however, this time I cannot get haproxy working properly.

I have generated a new SSL cert for 443 access. here is my haproxy config:

maxconn 4096
user haproxy
group haproxy
log local0 debug

log global
mode http
option httplog
option dontlognull
retries 3
option redispatch
option http-server-close
option forwardfor
maxconn 2000
timeout connect 5s
timeout client 15min
timeout server 15min

frontend public
bind :::80 v4v6
bind :::443 v4v6 ssl crt /etc/ssl/snakeoil.pem
use_backend webcam if { path_beg /webcam/ }
default_backend octoprint

backend octoprint
reqrep ^([^\ :])\ /(.) \1\ /\2
option forwardfor
server octoprint1

backend webcam
reqrep ^([^\ :])\ /webcam/(.) \1\ /\2
server webcam1

Everything looks correct to me....Any help would be appreciated.

it turned out to be a cert issue. I regenerated the cert and it started working.

1 Like