Created
May 4, 2020 16:26
-
-
Save yasassri/dfa954ddd8410283c1994af32a128317 to your computer and use it in GitHub Desktop.
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
Create Certs | |
============= | |
openssl genrsa -out wso2.key 1024 | |
openssl req -new -key wso2.key -out wso2.csr | |
openssl x509 -req -days 3650 -in wso2.csr -signkey wso2.key -out wso2.crt | |
cat wso2.crt wso2.key | tee wso2.pem | |
HaProxy Configuration | |
===================== | |
``` | |
global | |
log 127.0.0.1 local0 | |
log 127.0.0.1 local1 debug | |
maxconn 4096 | |
defaults | |
log global | |
mode http | |
option httplog | |
option dontlognull | |
retries 3 | |
option redispatch | |
maxconn 2000 | |
timeout connect 5000 | |
timeout client 50000 | |
timeout server 50000 | |
frontend wso2.haproxy.test | |
bind *:443 ssl crt /Users/yasassri/work/services/wso2/haproxy/wso2.pem | |
mode http | |
default_backend nodes | |
backend nodes | |
mode http | |
balance roundrobin | |
server server1 127.0.0.1:9443 check ssl verify none | |
``` | |
Starting HaProxy | |
================ | |
sudo haproxy -f haproxy.cfg | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment