Skip to content

Commit ae97567

Browse files
committed
[Chore]: Add HAProxy SSL termination config
1 parent 939af8d commit ae97567

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
defaults
2+
mode http
3+
timeout client 15s
4+
timeout connect 10s
5+
timeout server 15s
6+
timeout http-request 10s
7+
8+
frontend iamitsfoss-frontend
9+
bind *:80
10+
bind *:443 ssl crt /etc/haproxy/certs/iamitsfoss.tech.pem
11+
http-request redirect scheme https if !{ ssl_fc }
12+
default_backend iamitsfoss-backend
13+
14+
backend iamitsfoss-backend
15+
http-request redirect scheme https if !{ ssl_fc }
16+
balance roundrobin
17+
server 130022-web-01 54.146.84.110:80 check
18+
server 130022-web-02 100.26.156.138:80 check

0 commit comments

Comments
 (0)