-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy pathconfig.yaml
More file actions
20 lines (17 loc) 路 819 Bytes
/
Copy pathconfig.yaml
File metadata and controls
20 lines (17 loc) 路 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Copyright 2022 <mzh.scnu@qq.com>. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# The load balancing algorithms supported by the balancer are:
# `round-robin` ,`random` ,`p2c`,`consistent-hash`,`bounded`,
# Among these,`p2c` refers to the power of 2 random choice,
# and `bounded` refers to consistent hash with bounded
schema: http # support http and https
port: 8089 # port for balancer
ssl_certificate:
ssl_certificate_key:
location: # route matching for reverse proxy
- pattern: /
proxy_pass: # URL of the reverse proxy
- "http://127.0.0.1:1012"
- "http://127.0.0.1:1013"
balance_mode: round-robin # load balancing algorithm