-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhaproxy.cfg
41 lines (35 loc) · 931 Bytes
/
haproxy.cfg
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
global
log /dev/log local0
log localhost local1 notice
maxconn 2000
daemon
defaults
log global
mode http
option httplog
option dontlognull
retries 3
timeout connect 5000
timeout client 50000
timeout server 50000
frontend http-in
stats enable
stats auth admin:admin
stats uri /haproxy?stats
bind *:80
acl front path_beg /
acl usuarios_back path_beg /usuarios
acl productos_back path_beg /productos
acl pedidos_back path_beg /pedidos
use_backend danusuarios if usuarios_back
use_backend danproductos if productos_back
use_backend danpedidos if pedidos_back
use_backend danui if front
backend danui
server ui-app dan-appui:3000 check
backend danusuarios
server clientes dan-gateway:8080 check
backend danproductos
server productos dan-gateway:8080 check
backend danpedidos
server pedidos dan-gateway:8080 check