-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhaproxy.cfg
More file actions
48 lines (39 loc) · 1.18 KB
/
haproxy.cfg
File metadata and controls
48 lines (39 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
defaults
mode http
option httpclose
option forwardfor
option httpchk
timeout client 10s
timeout connect 5s
timeout server 10s
timeout http-request 10s
resolvers dockerdns
parse-resolv-conf
frontend gitlab-fe
bind :80
# You can uncomment the `ssl crt` & `http-request redirect scheme` directives
# after generating your own self-signed certificate
bind :443 # ssl crt /usr/local/etc/haproxy/certs/ssl.pem
# http-request redirect scheme https unless { ssl_fc }
use_backend gitlab-be
frontend prometheus-fe
# You can uncomment the `ssl crt` directive after generating your own self-signed certificate
bind :9090 # ssl crt /usr/local/etc/haproxy/certs/ssl.pem
use_backend prometheus-be
frontend grafana-fe
# You can uncomment the `ssl crt` directive after generating your own self-signed certificate
bind :3000 # ssl crt /usr/local/etc/haproxy/certs/ssl.pem
use_backend grafana-be
backend gitlab-be
server gitlab gitlab:80
backend grafana-be
server grafana grafana:3000
backend prometheus-be
server prometheus gitlab:9090
frontend gitlab-ssh-fe
mode tcp
bind :2222
use_backend gitlab-ssh-be
backend gitlab-ssh-be
mode tcp
server gitlab gitlab:22