add haproxy1.x versions
This commit is contained in:
35
haproxy2x.basic
Normal file
35
haproxy2x.basic
Normal file
@@ -0,0 +1,35 @@
|
||||
#Basic setup from:
|
||||
#https://community.octoprint.org/t/setting-up-octoprint-on-a-computer-running-fedora-centos-almalinux-or-rockylinux/37137/2
|
||||
|
||||
global
|
||||
maxconn 4000
|
||||
user haproxy
|
||||
group haproxy
|
||||
daemon
|
||||
log 127.0.0.1 local0 debug
|
||||
|
||||
defaults
|
||||
log global
|
||||
mode http
|
||||
option httplog
|
||||
option dontlognull
|
||||
retries 3
|
||||
option redispatch
|
||||
option http-server-close
|
||||
option forwardfor except 127.0.0.0/8
|
||||
timeout http-request 10s
|
||||
timeout queue 1m
|
||||
timeout connect 10s
|
||||
timeout client 1m
|
||||
timeout server 1m
|
||||
timeout http-keep-alive 10s
|
||||
timeout check 10s
|
||||
|
||||
frontend public
|
||||
bind :::80 v4v6
|
||||
option forwardfor except 127.0.0.1
|
||||
default_backend octoprint
|
||||
|
||||
backend octoprint
|
||||
option forwardfor
|
||||
server octoprint1 127.0.0.1:5000
|
||||
Reference in New Issue
Block a user