###########
#haproxy_frontend_port: 80
+#haproxy_frontend_ssl_port: 443
+#haproxy_frontend_ssl_certificate:
+#haproxy_ssl_dh_param: 4096
+#haproxy_ssl_ciphers:
+# - EECDH+AESGCM
+# - EDH+AESGCM
+#haproxy_ssl_options:
+# - no-sslv3
+# - no-tlsv10
+# - no-tlsv11
+# - no-tls-tickets
#
#virtual_ips:
# - 192.168.238.250
###########
haproxy_frontend_port: 80
+haproxy_frontend_ssl_port: 443
+haproxy_frontend_ssl_certificate:
+haproxy_ssl_dh_param: 4096
+haproxy_ssl_ciphers:
+ - EECDH+AESGCM
+ - EDH+AESGCM
+haproxy_ssl_options:
+ - no-sslv3
+ - no-tlsv10
+ - no-tlsv11
+ - no-tls-tickets
#
#virtual_ips:
# - 192.168.238.250
group haproxy
daemon
stats socket /var/lib/haproxy/stats
-
+{%- if haproxy_frontend_ssl_certificate %}
+ tune.ssl.default-dh-param {{ haproxy_ssl_dh_param }}
+ ssl-default-bind-ciphers {{ haproxy_ssl_ciphers | join(':') }}
+ ssl-default-bind-options {{ haproxy_ssl_options | join(' ') }}
+{% endif %}
defaults
mode http
log global
maxconn 8000
frontend rgw-frontend
+{% if haproxy_frontend_ssl_certificate %}
+ bind *:{{ haproxy_frontend_ssl_port }} ssl crt {{ haproxy_frontend_ssl_certificate }}
+{% else %}
bind *:{{ haproxy_frontend_port }}
+{% endif %}
default_backend rgw-backend
backend rgw-backend