<commit_before>---
haproxy_user: haproxy
haproxy_group: haproxy

haproxy_error_handling_enabled: yes
haproxy_attack_mitigation_enabled: no
haproxy_assumes_backend_is_dead_after: 4

haproxy_runtime_root: "{{ runtime_root }}/haproxy"
haproxy_pidfile_path: "{{ haproxy_runtime_root }}/haproxy.pid"
haproxy_stats_socket_path: "{{ haproxy_runtime_root }}/stats.sock"

haproxy_chroot_path: /var/lib/haproxy

haproxy_standard_configuration: yes
haproxy_autodeploy_passthrough_enabled: no

haproxy_stats_enabled: yes
haproxy_stats_uri: /stats
haproxy_stats_user: metrics
haproxy_stats_password: <PASSWORD>***

haproxy_ssl_enabled: no
haproxy_ssl_certificate_path: /data/www/ssl.crt
haproxy_ssl_ciphers: EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH+aRSA+RC4:!RC4:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS
haproxy_ssl_should_degrade_security_to_accomodate_old_browsers: no
haproxy_ssl_redirect_http_to_https: no
haproxy_ssl_disable_sslv3: yes

haproxy_perfect_forward_secrecy_enabled: no
haproxy_load_balancer_enabled: "{% if environment_tier in ['production', 'staging'] %}yes{% endif %}"
haproxy_standard_application: yes
haproxy_backend_name: "{{ project }}-application"
haproxy_protocol: http
haproxy_backend_server_port: 80
haproxy_frontend_port: 80
haproxy_backend_server_direct: "application{% if haproxy_load_balancer_enabled %}-direct{% endif %}.{{ project }}-{{ environment_tier }}.{{ domain }}{% if haproxy_ssl_enabled %}:{{ haproxy_backend_server_port }}{% endif %}"
haproxy_backend_server_load_balancer: "application.{{ project }}-{{ environment_tier }}.{{ domain }}{% if haproxy_ssl_enabled %}:{{ haproxy_backend_server_port }}{% endif %}"

haproxy_backend_host_range_enabled: no
haproxy_backend_network: 10.0.2
haproxy_backend_host_range_start: 1
haproxy_backend_host_range_end: 128

haproxy_restricted_paths: no
haproxy_allow_access_to_restricted_paths_from_ips:
  - ***REMOVED***
  - ***REMOVED***
  - ***REMOVED***
  - ***REMOVED***
  - ***REMOVED***
  - ***REMOVED***
  - ***REMOVED***
  - ***REMOVED***
  - ***REMOVED***<commit_msg>moved haproxy protocol variable to a better location<commit_after>---
haproxy_user: haproxy
haproxy_group: haproxy

haproxy_error_handling_enabled: yes
haproxy_attack_mitigation_enabled: no
haproxy_assumes_backend_is_dead_after: 4

haproxy_runtime_root: "{{ runtime_root }}/haproxy"
haproxy_pidfile_path: "{{ haproxy_runtime_root }}/haproxy.pid"
haproxy_stats_socket_path: "{{ haproxy_runtime_root }}/stats.sock"

haproxy_chroot_path: /var/lib/haproxy

haproxy_standard_configuration: yes
haproxy_autodeploy_passthrough_enabled: no

haproxy_stats_enabled: yes
haproxy_stats_uri: /stats
haproxy_stats_user: metrics
haproxy_stats_password: ***<PASSWORD>***

haproxy_protocol: http
haproxy_ssl_enabled: no
haproxy_ssl_certificate_path: /data/www/ssl.crt
haproxy_ssl_ciphers: EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH+aRSA+RC4:!RC4:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS
haproxy_ssl_should_degrade_security_to_accomodate_old_browsers: no
haproxy_ssl_redirect_http_to_https: no
haproxy_ssl_disable_sslv3: yes

haproxy_perfect_forward_secrecy_enabled: no
haproxy_load_balancer_enabled: "{% if environment_tier in ['production', 'staging'] %}yes{% endif %}"
haproxy_standard_application: yes
haproxy_backend_name: "{{ project }}-application"
haproxy_backend_server_port: 80
haproxy_frontend_port: 80
haproxy_backend_server_direct: "application{% if haproxy_load_balancer_enabled %}-direct{% endif %}.{{ project }}-{{ environment_tier }}.{{ domain }}{% if haproxy_ssl_enabled %}:{{ haproxy_backend_server_port }}{% endif %}"
haproxy_backend_server_load_balancer: "application.{{ project }}-{{ environment_tier }}.{{ domain }}{% if haproxy_ssl_enabled %}:{{ haproxy_backend_server_port }}{% endif %}"

haproxy_backend_host_range_enabled: no
haproxy_backend_network: 10.0.2
haproxy_backend_host_range_start: 1
haproxy_backend_host_range_end: 128

haproxy_restricted_paths: no
haproxy_allow_access_to_restricted_paths_from_ips:
  - ***REMOVED***
  - ***REMOVED***
  - ***REMOVED***
  - ***REMOVED***
  - ***REMOVED***
  - ***REMOVED***
  - ***REMOVED***
  - ***REMOVED***
  - ***REMOVED***
{'fraction_non_alphanumeric': 0.12949136724218385, 'fraction_numerical': 0.013999066728884742, 'mean_word_length': 9.611386138613861, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2923456', 'n_tokens_mistral': 1895, 'n_tokens_neox': 1758, 'n_words': 224}