Skip to content

Instantly share code, notes, and snippets.

@davidbirdsong
Created March 9, 2014 04:02
Show Gist options
  • Select an option

  • Save davidbirdsong/9442754 to your computer and use it in GitHub Desktop.

Select an option

Save davidbirdsong/9442754 to your computer and use it in GitHub Desktop.
switch between tls and raw tcp based on a small inspection
frontend hekad-server
bind :30514
mode tcp
option contstats
tcp-request inspect-delay 10s
tcp-request content accept if { req.ssl_ver gt 0 }
tcp-request content accept if { src 10.0.0.0/8 }
tcp-request content accept if { src 127.0.0.1 }
tcp-request content reject
use_backend heka_agg_tls if { req.ssl_ver gt 0 }
default_backend heka_agg_raw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment