Files
ocserv/tests/docker-ocserv/haproxy-proxyproto-unix.cfg
2015-07-16 10:01:13 +02:00

43 lines
1.2 KiB
INI

global
# log /dev/log local0
# log /dev/log local1 notice
# chroot /var/lib/haproxy
stats socket /var/run/admin.sock mode 660 level admin
stats timeout 30s
user haproxy
group haproxy
daemon
# Default SSL material locations
ca-base /etc/ssl/certs
crt-base /etc/ssl/private
# Default ciphers to use on SSL-enabled listening sockets.
# For more information, see ciphers(1SSL).
ssl-default-bind-ciphers kEECDH+aRSA+AES:kRSA+AES:+AES256:RC4-SHA:!kEDH:!LOW:!EXP:!MD5:!aNULL:!eNULL
defaults
log global
mode http
option httplog
option dontlognull
timeout connect 5000
timeout client 50000
timeout server 50000
# errorfile 400 /etc/haproxy/errors/400.http
# errorfile 403 /etc/haproxy/errors/403.http
# errorfile 408 /etc/haproxy/errors/408.http
# errorfile 500 /etc/haproxy/errors/500.http
# errorfile 502 /etc/haproxy/errors/502.http
# errorfile 503 /etc/haproxy/errors/503.http
# errorfile 504 /etc/haproxy/errors/504.http
frontend www-https
bind 0.0.0.0:443 ssl crt /etc/ocserv/combo.pem ca-file /etc/ocserv/ca.pem verify required
reqadd X-Forwarded-Proto:\ https
default_backend www-backend
backend www-backend
server ocserv unix@/var/run/ocserv-conn.socket check send-proxy-v2 send-proxy-v2-ssl-cn send-proxy-v2-ssl