<commit_before>global
	log 127.0.0.1	local0
	log 127.0.0.1	local1 notice
	chroot /var/lib/haproxy
	stats socket /run/haproxy/admin.sock mode 660 level admin
	stats timeout 30s
	user haproxy
	group haproxy
	daemon

	ssl-default-bind-ciphers kEECDH+aRSA+AES:kRSA+AES:+AES256:RC4-SHA:!kEDH:!LOW:!EXP:!MD5:!aNULL:!eNULL

userlist admins
  user admin insecure-password PLACEHOLDER_PASSWORD

defaults
	log		global
	mode	http
	retries 3
	option redispatch
	option	dontlognull
    timeout connect 5000
    timeout client  500000
    timeout server  500000
	errorfile 400 /etc/haproxy/errors/400.http
	errorfile 403 /etc/haproxy/errors/403.http
	errorfile 408 /etc/haproxy/errors/408.http
	errorfile 500 /etc/haproxy/errors/500.http
	errorfile 502 /etc/haproxy/errors/502.http
	errorfile 503 /etc/haproxy/errors/503.http
	errorfile 504 /etc/haproxy/errors/504.http

frontend mongo
  bind  *:27017
  mode tcp
  option tcplog
  default_backend mongo
  
frontend elasticsearch
  bind *:9200
  mode tcp
  option tcplog
  default_backend elasticsearch
  
frontend frontend-ssl
  bind *:443 ssl crt /etc/ssl/proxy.pem
  mode http
  option httplog
  
  acl webapp path_beg -i /game
  use_backend webapp	if webapp
  
  acl player path_beg -i /play
  use_backend player	if player
  
  acl room	 path_beg -i /rooms
  use_backend room		if room
  
  acl concierge path_beg -i /concierge
  use_backend concierge if concierge
  
  acl dockerui path_beg -i /docker
  use_backend dockerui	if dockerui

  default_backend website

frontend frontend-plain
  bind *:80
  mode http
  option httplog
  
  acl webapp path_beg -i /game
  use_backend webapp	if webapp
  
  acl player path_beg -i /play
  use_backend player	if player
  
  acl room	 path_beg -i /rooms
  use_backend room		if room
  
  acl concierge path_beg -i /concierge
  use_backend concierge if concierge
  
  acl dockerui path_beg -i /docker
  use_backend dockerui	if dockerui

  default_backend website

backend room
  mode http
  option httplog
  option httpchk HEAD / HTTP/1.1\r\nHost:localhost
  balance roundrobin
  server room1 PLACEHOLDER_DOCKERHOST:9080 check
  
backend concierge
  mode http
  option httplog
  option httpchk HEAD / HTTP/1.1\r\nHost:localhost
  balance roundrobin
  server concierge1 PLACEHOLDER_DOCKERHOST:9081 check

backend player
  mode http
  option httplog
  balance roundrobin
  server player1 PLACEHOLDER_DOCKERHOST:9443 ssl verify none 

backend webapp
  mode http
  option httpchk HEAD /game HTTP/1.1\r\nHost:localhost
  option httplog
  balance roundrobin
  server webapp1 PLACEHOLDER_DOCKERHOST:3000 check

backend dockerui
  mode http
  option httplog
  option httpchk HEAD / HTTP/1.1\r\nHost:localhost
  balance roundrobin
  server dockerui1 PLACEHOLDER_DOCKERHOST:9000 check
  acl auth_ok http_auth(admins)
  http-request auth unless auth_ok
  reqrep ^([^\ ]*\ /)docker[/]?(.*) \1\2 
	
backend website
  mode http
  option httpchk HEAD / HTTP/1.1\r\nHost:localhost
  option httplog
  balance roundrobin
  server web1 PLACEHOLDER_DOCKERHOST:80 check

backend mongo
  mode tcp
  option tcplog
  option tcp-check
  tcp-check connect
  tcp-check send GET\ /\ HTTP/1.0\r\n
  tcp-check expect rstring It.*
  balance roundrobin
  server mongo1 PLACEHOLDER_DOCKERHOST:27017 check
  
backend elasticsearch
  mode tcp
  option tcplog
  balance roundrobin
  server es1 PLACEHOLDER_DOCKERHOST:9200 check
  
listen stats *:1936
    stats enable
    stats uri /
    stats hide-version
    stats auth admin:PLACEHOLDER_PASSWORD
<commit_msg>Fixing this to quit for now.<commit_after>global
	log 127.0.0.1	local0
	log 127.0.0.1	local1 notice
	chroot /var/lib/haproxy
	stats socket /run/haproxy/admin.sock mode 660 level admin
	stats timeout 30s
	user haproxy
	group haproxy
	daemon

	ssl-default-bind-ciphers kEECDH+aRSA+AES:kRSA+AES:+AES256:RC4-SHA:!kEDH:!LOW:!EXP:!MD5:!aNULL:!eNULL

userlist admins
  user admin insecure-password PL<PASSWORD>

defaults
	log		global
	mode	http
	retries 3
	option redispatch
	option	dontlognull
    timeout connect 5000
    timeout client  500000
    timeout server  500000
	errorfile 400 /etc/haproxy/errors/400.http
	errorfile 403 /etc/haproxy/errors/403.http
	errorfile 408 /etc/haproxy/errors/408.http
	errorfile 500 /etc/haproxy/errors/500.http
	errorfile 502 /etc/haproxy/errors/502.http
	errorfile 503 /etc/haproxy/errors/503.http
	errorfile 504 /etc/haproxy/errors/504.http

frontend mongo
  bind  *:27017
  mode tcp
  option tcplog
  default_backend mongo
  
frontend elasticsearch
  bind *:9200
  mode tcp
  option tcplog
  default_backend elasticsearch
  
frontend frontend-ssl
  bind *:443 ssl crt /etc/ssl/proxy.pem
  mode http
  option httplog
  
  acl webapp path_beg -i /game
  use_backend webapp	if webapp
  
  acl player path_beg -i /play
  use_backend player	if player
  
  acl room	 path_beg -i /rooms
  use_backend room		if room
  
  acl concierge path_beg -i /concierge
  use_backend concierge if concierge
  
  acl dockerui path_beg -i /docker
  use_backend dockerui	if dockerui

  default_backend website

frontend frontend-plain
  bind *:80
  mode http
  option httplog
  
  acl webapp path_beg -i /game
  use_backend webapp	if webapp
  
  acl player path_beg -i /play
  use_backend player	if player
  
  acl room	 path_beg -i /rooms
  use_backend room		if room
  
  acl concierge path_beg -i /concierge
  use_backend concierge if concierge
  
  acl dockerui path_beg -i /docker
  use_backend dockerui	if dockerui

  default_backend website

backend room
  mode http
  option httplog
  option httpchk HEAD / HTTP/1.1\r\nHost:localhost
  balance roundrobin
  server room1 PLACEHOLDER_DOCKERHOST:9080 check
  
backend concierge
  mode http
  option httplog
  option httpchk HEAD / HTTP/1.1\r\nHost:localhost
  balance roundrobin
  server concierge1 PLACEHOLDER_DOCKERHOST:9081 check

backend player
  mode http
  option httplog
  balance roundrobin
  server player1 PLACEHOLDER_DOCKERHOST:9443 ssl verify none 

backend webapp
  mode http
  option httpchk HEAD /game HTTP/1.1\r\nHost:localhost
  option httplog
  balance roundrobin
  server webapp1 PLACEHOLDER_DOCKERHOST:3000 check

backend dockerui
  mode http
  option httplog
  option httpchk HEAD / HTTP/1.1\r\nHost:localhost
  balance roundrobin
  server dockerui1 PLACEHOLDER_DOCKERHOST:9000 check
  acl auth_ok http_auth(admins)
  http-request auth unless auth_ok
  reqrep ^([^\ ]*\ /)docker[/]?(.*) \1\2 
	
backend website
  mode http
  option httpchk HEAD / HTTP/1.1\r\nHost:localhost
  option httplog
  balance roundrobin
  server web1 PLACEHOLDER_DOCKERHOST:80 check

backend mongo
  mode tcp
  option tcplog
  option tcp-check
  tcp-check connect
  balance roundrobin
  server mongo1 PLACEHOLDER_DOCKERHOST:27017 check
  
backend elasticsearch
  mode tcp
  option tcplog
  balance roundrobin
  server es1 PLACEHOLDER_DOCKERHOST:9200 check
  
listen stats *:1936
    stats enable
    stats uri /
    stats hide-version
    stats auth admin:PLACEHOLDER_PASSWORD

{'fraction_non_alphanumeric': 0.05301829707534937, 'fraction_numerical': 0.044085866589828555, 'mean_word_length': 3.531331592689295, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '285322', 'n_tokens_mistral': 2811, 'n_tokens_neox': 2539, 'n_words': 717}