File size: 518 Bytes
3502a78
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# global
#  tune.h2.initial-window-size 1048576
#  tune.h2.max-concurrent-streams 1000 

defaults
  mode http
  log global

frontend http-in
    # bind *:80
    # bind *:443 ssl crt /etc/ssl/fullchain.pem alpn h2,http/1.1
    bind *:8000
    mode http
    acl is_api path_beg /api
    use_backend api-backend if is_api
    default_backend frontend

backend api-backend
    balance roundrobin
    server go-backend server:8080 check

backend frontend
    balance roundrobin
    server nextjs-frontend client:3000 check