-
Notifications
You must be signed in to change notification settings - Fork 41
/
haproxy2x.basic
35 lines (31 loc) · 946 Bytes
/
haproxy2x.basic
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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