forked from janeczku/haproxy-acme-validation-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhaproxy.cfg.example
More file actions
32 lines (28 loc) · 746 Bytes
/
haproxy.cfg.example
File metadata and controls
32 lines (28 loc) · 746 Bytes
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
global
user haproxy
group haproxy
daemon
log /dev/log local0
log /dev/log local1 info
chroot /var/lib/haproxy
crt-base /etc/letsencrypt/live
lua-load /etc/haproxy/acme-http01-webroot.lua
defaults
log global
mode http
option httplog
timeout connect 5000
timeout client 50000
timeout server 50000
frontend http
bind *:80
mode http
acl url_acme_http01 path_beg /.well-known/acme-challenge/
http-request use-service lua.acme-http01 if METH_GET url_acme_http01
default_backend default
frontend https
bind *:443 ssl crt www.example.com/haproxy.pem
mode http
default_backend default
backend default
server server1 127.0.0.1:8002