/
bootstrap-development.yml
74 lines (74 loc) · 1.59 KB
/
bootstrap-development.yml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
consul:
host: localhost
port: 8500
discoveryHost: localhost
healthCheck:
timeout: 1s
interval: 10s
maxRetry: 5
retryInterval: 5000
config:
key: nestcloud-starter-service-config
retry: 5
service:
id: null
name: nestcloud-starter-service
port: 8081
dataSource:
host: localhost
port: 3306
username: root
password: my-secret-pw
synchronize: true
maxQueryExecutionTime: 1000
loadbalance:
# Supports:
# RandomRule
# RoundRobinRule
# WeightedResponseTimeRule
ruleCls: RandomRule
rules:
- service: your-service-name
ruleCls: RoundRobinRule
proxy:
routes:
- id: user
# self
uri: lb://nestcloud-starter-service
filters:
- name: AddRequestHeaderFilter
parameters:
test-header: test1213123123
- name: AddResponseHeaderFilter
parameters:
response-header: 123123hello
- id: article
uri: https://api.apiopen.top/recommendPoetry
logger:
level: info
transports:
- transport: console
colorize: true
datePattern: YYYY-MM-DD h:mm:ss
label: nestcloud-user-service
- transport: file
name: info
json: false
filename: ../logs/all.log
datePattern: YYYY-MM-DD h:mm:ss
label: nestcloud-starter-service
# 200M
maxsize: 209715200
maxFiles: 10
- transport: file
name: error
level: error
json: false
filename: ../logs/error.log
datePattern: YYYY-MM-DD h:mm:ss
label: nestcloud-starter-service
# 200M
maxsize: 209715200
maxFiles: 10
custom:
data: test