Created
April 2, 2013 19:12
-
-
Save DavidMikeSimon/5295256 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| global | |
| log 127.0.0.1 local0 | |
| chroot /home/haproxy | |
| user haproxy | |
| group haproxy | |
| daemon | |
| #debug | |
| #quiet | |
| defaults | |
| mode http | |
| log global | |
| retries 3 | |
| timeout connect 5s | |
| timeout client 10s | |
| timeout server 10s | |
| frontend beatbox_front_unsecure | |
| log-format C:%ci:%cp\ F:%fi:%fp\ %ft\ S:%si:%sp\ [%t]\ %ft\ %b/%s\ %Tw/%Tc/%Tt\ %B\ %tsc\ %ac/%fc/%bc/%sc/%rc\ %sq/%bq | |
| mode tcp | |
| bind :80 | |
| tcp-request inspect-delay 15s | |
| acl content_present req_len gt 0 | |
| tcp-request content accept if content_present | |
| tcp-request content reject | |
| use_backend redirect_ssl if HTTP | |
| default_backend flash_policy | |
| frontend beatbox_front | |
| log-format C:%ci:%cp\ F:%fi:%fp\ %ft\ S:%si:%sp\ [%t]\ %ft\ %b/%s\ %Tq/%Tw/%Tc/%Tr/%Tt\ %ST\ %B\ %CC\ %CS\ %tsc\ %ac/%fc/%bc/%sc/%rc\ %sq/%bq\ %hr\ %hs\ %{+Q}r | |
| option http-server-close | |
| option forwardfor | |
| bind :443 ssl crt /etc/ssl/private/beatbox-combined.pem | |
| acl path_chamber_io path_beg /chamberio/ | |
| use_backend chamberio if path_chamber_io | |
| default_backend nginx | |
| backend nginx | |
| server nginx 127.0.0.1:1080 | |
| backend chamberio | |
| {% for p in range(1400, 1500) %} | |
| acl path_chamber_io{{p}} path_beg /chamberio/{{p}}/ | |
| server chamber_io{{p}} 127.0.0.1:{{p}} | |
| use-server chamber_io{{p}} if path_chamber_io{{p}} | |
| {% endfor %} | |
| backend flash_policy | |
| mode tcp | |
| server flashpolicy 127.0.0.1:10843 | |
| backend redirect_ssl | |
| mode http | |
| redirect scheme https code 301 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment