haproxy.cfg.example 634 B

123456789101112131415161718192021222324252627
  1. global
  2. #daemon
  3. #log /dev/log local0
  4. crt-base /etc/letsencrypt/live
  5. lua-load /etc/haproxy/acme-http01-webroot.lua
  6. defaults
  7. mode http
  8. option httplog
  9. timeout connect 5000
  10. timeout client 50000
  11. timeout server 50000
  12. frontend http
  13. bind *:80
  14. mode http
  15. acl url_acme_http01 path_beg /.well-known/acme-challenge/
  16. http-request use-service lua.acme-http01 if METH_GET url_acme_http01
  17. default_backend default
  18. frontend https
  19. bind *:443 ssl crt www.example.com/haproxy.pem
  20. mode http
  21. default_backend default
  22. backend default
  23. server server1 127.0.0.1:8002