You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.1 KiB

#---------------------------------------------------------------------
# Global settings
#---------------------------------------------------------------------
global
log 127.0.0.1 local2
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 4000
user haproxy
group haproxy
daemon
# turn on stats unix socket
stats socket /var/lib/haproxy/stats
# utilize system-wide crypto-policies
ssl-default-bind-ciphers PROFILE=SYSTEM
ssl-default-server-ciphers PROFILE=SYSTEM
defaults
mode tcp
frontend api
bind *:6443
default_backend api
frontend app_http
bind *:80
default_backend app_http
frontend app_https
bind *:443
default_backend app_https
backend api
balance roundrobin
server server1 localhost:8080 check
backend app_http
balance roundrobin
server server1 localhost:8080 check
backend app_https
balance roundrobin
server server1 localhost:8080 check