This file contains 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
frontend api_gateway | |
bind :443 ssl crt /etc/hapee-1.8/certs/cert.pem | |
acl PATH_cart path_beg -i /cart | |
acl PATH_catalog path_beg -i /catalog | |
use_backend be_cart if PATH_cart | |
use_backend be_catalog if PATH_catalog | |
backend be_cart | |
server s1 10.0.0.3:80 |
This file contains 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
backend webfarm | |
stick-table type ip size 1m expire 10s store http_req_rate(10s) | |
# other configuration... |
This file contains 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
acl is_static path -i -m beg /static/ |
This file contains 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
export AWS_ACCESS_KEY_ID=[YOUR ACCESS KEY] | |
export AWS_SECRET_ACCESS_KEY=[YOUR SECRET ACCESS KEY] | |
terraform init | |
terraform apply -auto-approve |
This file contains 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
# A comment begins with a hash sign | |
static.example.com be_static | |
www.example.com be_static | |
# You can add additional comments, but they must be on a new line | |
example.com be_static | |
api.example.com be_api |
This file contains 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
haproxy -c -f /etc/hapee-1.8/hapee-lb.cfg |
This file contains 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
backend per_ip_rates | |
stick-table type ip size 1m expire 10m store http_req_rate(10s) |
This file contains 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
stats socket /var/run/haproxy.sock mode 600 expose-fd listeners level user |
This file contains 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 /dev/log local0 debug | |
nbproc 1 | |
daemon | |
lua-load config.lua | |
lua-load acme.lua | |
defaults | |
log global | |
mode http |
This file contains 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
consul agent -server -ui -bootstrap-expect=1 -data-dir=/var/lib/consul \ | |
-node=server -bind=0.0.0.0 -config-dir=/etc/consul.d -client=0.0.0.0 \ | |
-http-port=80 -domain=consul.itchy.local |
OlderNewer