haproxy.cfg.example 746 B

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