mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-02 19:42:41 +00:00
DOC: examples: provide simplified ssl configuration
Provides a minimalistic ssl configuration example - no details because they belong to doc/*.
This commit is contained in:
parent
bf43f6eb32
commit
19f7fda81f
26
examples/ssl.cfg
Normal file
26
examples/ssl.cfg
Normal file
@ -0,0 +1,26 @@
|
||||
# This configuration is a simplified example of how to use ssl on front
|
||||
# and backends with additional certificates loaded from a directory for SNI
|
||||
# capable clients.
|
||||
|
||||
global
|
||||
maxconn 100
|
||||
|
||||
defaults
|
||||
mode http
|
||||
timeout connect 5s
|
||||
timeout client 5s
|
||||
timeout server 5s
|
||||
|
||||
frontend myfrontend
|
||||
# primary cert is /etc/cert/server.pem
|
||||
# /etc/cert/certdir/ contains additional certificates for SNI clients
|
||||
bind :443 ssl crt /etc/cert/server.pem crt /etc/cert/certdir/
|
||||
bind :80
|
||||
default_backend mybackend
|
||||
|
||||
backend mybackend
|
||||
# a http backend
|
||||
server s3 10.0.0.3:80
|
||||
# a https backend
|
||||
server s4 10.0.0.3:443 ssl
|
||||
|
Loading…
Reference in New Issue
Block a user