Skip to content

Commit 0195edb

Browse files
No loophole in your website traffic
1 parent 895b516 commit 0195edb

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
global
2+
log /dev/log local0
3+
log /dev/log local1 notice
4+
chroot /var/lib/haproxy
5+
stats socket /run/haproxy/admin.sock mode 660 level admin expose-fd listeners
6+
stats timeout 30s
7+
user haproxy
8+
group haproxy
9+
daemon
10+
11+
# Default SSL material locations
12+
ca-base /etc/ssl/certs
13+
crt-base /etc/ssl/private
14+
15+
# See: https://ssl-config.mozilla.org/#server=haproxy&server-version=2.0.3&config=intermediate
16+
ssl-default-bind-ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-S>
17+
ssl-default-bind-ciphersuites TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256
18+
ssl-default-bind-options ssl-min-ver TLSv1.2 no-tls-tickets
19+
20+
defaults
21+
log global
22+
mode http
23+
option httplog
24+
option dontlognull
25+
timeout connect 5000
26+
timeout client 50000
27+
timeout server 50000
28+
errorfile 400 /etc/haproxy/errors/400.http
29+
errorfile 403 /etc/haproxy/errors/403.http
30+
errorfile 408 /etc/haproxy/errors/408.http
31+
errorfile 500 /etc/haproxy/errors/500.http
32+
errorfile 502 /etc/haproxy/errors/502.http
33+
errorfile 503 /etc/haproxy/errors/503.http
34+
errorfile 504 /etc/haproxy/errors/504.http
35+
36+
frontend abrahamalgorithm-frontend
37+
bind *:80
38+
mode http
39+
http-request redirect scheme https code 301 unless { ssl_fc }
40+
http-request set-header X_Forwarded-Proto http
41+
default_backend abrahamalgorithm-backend
42+
43+
frontend abrahamalgorithm-frontend-https
44+
bind *:443 ssl crt /etc/haproxy/certs/www.abrahamalgorithm.tech.pem
45+
http-request set-header X-Forwarded-Proto https
46+
default_backend abrahamalgorithm-backend
47+
48+
backend abrahamalgorithm-backend
49+
balance roundrobin
50+
server 157463-web-01 18.234.106.242:80 check
51+
server 157463-web-02 54.160.83.214:80 check

0 commit comments

Comments
 (0)