Jaels

Untitled

Sep 25th, 2017
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.45 KB | None | 0 0
  1. [root@app config]# cat haproxy.cfg
  2. global
  3.         log 127.0.0.1 local2
  4.         lua-load /usr/local/etc/haproxy/acme-http01-webroot.lua
  5.         chroot /jail
  6.         ssl-default-bind-ciphers AES256+EECDH:AES256+EDH:!aNULL;
  7.         tune.ssl.default-dh-param 4096
  8.  
  9. defaults
  10.     mode http
  11.     timeout connect 5000ms
  12.     timeout client 50000ms
  13.     timeout server 50000ms
  14.     option tcplog
  15.     option forwardfor
  16.     option http-server-close
  17.  
  18.  
  19. frontend http-in
  20.         bind *:80
  21.         mode http
  22.         acl url_acme_http01 path_beg /.well-known/acme-challenge/
  23.         http-request use-service lua.acme-http01 if METH_GET url_acme_http01
  24.         redirect scheme https code 301 if !{ ssl_fc }
  25.  
  26. frontend ft_ssl_vip
  27.         mode http
  28.         bind *:443 ssl crt /usr/local/etc/haproxy/certs/ no-sslv3 no-tls-tickets no-tlsv10 no-tlsv11
  29.         rspadd Strict-Transport-Security:\ max-age=15768000
  30.         use_backend testproxy_backend if { ssl_fc_sni testproxy.test.com }
  31.         use_backend jira_backend if { ssl_fc_sni jira.test.com }
  32.  
  33. backend testproxy_backend
  34.         mode http
  35.         server Proxy-Handler handler:80 check
  36.         http-request add-header X-Forwarded-Proto https if { ssl_fc }
  37.  
  38. backend jira_backend
  39.         mode http
  40.         http-request add-header X-Forwarded-Proto https if { ssl_fc }
  41.         server Local 192.168.19.40:8443 check
  42.  
  43.  
  44. frontend stats
  45.         bind :1936
  46.         mode http
  47.         maxconn 1
  48.         stats uri /
Advertisement
Add Comment
Please, Sign In to add comment