-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin-dev_v2.yml
executable file
·142 lines (133 loc) · 3.45 KB
/
admin-dev_v2.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
logging:
level:
# tk.mybatis: DEBUG
com.github.wxiaoqi.security.admin: DEBUG
spring:
application:
name: ace-admin
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
default-property-inclusion: non_null
datasource:
name: test
url: jdbc:mysql://localhost:3306/ag_admin?useUnicode=true&characterEncoding=UTF8
username: root
password: 123456
# 使用druid数据源
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
druid:
filters: stat
maxActive: 20
initialSize: 1
maxWait: 60000
minIdle: 1
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: select 'x'
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
maxOpenPreparedStatements: 20
redis:
database: 1
host: 127.0.0.1
port: 6379
pool:
max-active: 20
rabbitmq:
host: localhost
port: 5672
username: guest
password: guest
zipkin:
enabled: true
sleuth:
sampler:
percentage: 1
mybatis:
mapper-locations: "classpath*:mapper/*.xml"
server:
port: 8762
eureka:
instance:
statusPageUrlPath: /actuator/info
healthCheckUrlPath: /actuator/health
# docker 部署开启,记得将IP修改为部署所在服务器的外网IP
prefer-ip-address: true
# ip-address: 127.0.0.1
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka/
# docker 部署开启,记得将IP修改为部署所在服务器的外网IP
# defaultZone: http://${EUREKA_HOST:localhost}:${EUREKA_PORT:8761}/eureka/
# 必须配置
feign:
httpclient:
enabled: false
okhttp:
enabled: true
ribbon:
eureka:
enabled: true
ReadTimeout: 120000
ConnectTimeout: 120000
MaxAutoRetries: 0
MaxAutoRetriesNextServer: 1
OkToRetryOnAllOperations: false
hystrix:
threadpool:
default:
coreSize: 1000 ##并发执行的最大线程数,默认10
maxQueueSize: 1000 ##BlockingQueue的最大队列数
queueSizeRejectionThreshold: 500 ##即使maxQueueSize没有达到,达到queueSizeRejectionThreshold该值后,请求也会被拒绝
command:
default:
execution:
isolation:
thread:
timeoutInMilliseconds: 120000
# 配置swagger
swagger:
enabled: true
base-package: com.github.wxiaoqi.security.admin
title: Admin Back
version: 1.0.0.SNAPSHOT
description: Admin Back后端服务
contact:
name: 老A
auth:
serviceId: ace-auth
user:
token-header: Authorization
limit-expire: 1440 # 一天过期
client:
id: ace-admin
secret: 123456
token-header: client-token
#redis-cache 相关
redis:
pool:
maxActive: 300
maxIdle: 100
maxWait: 1000
host: localhost
port: 6379
password:
timeout: 2000
# 服务或应用名
sysName: ace-admin
enable: true
database: 0
# 跨服务数据合并
merge:
enabled: true
guavaCacheNumMaxSize: 1000
guavaCacheRefreshWriteTime: 10 # min
guavaCacheRefreshThreadPoolSize: 10
aop:
enabled: true
mapper:
mappers: com.github.wxiaoqi.security.common.mapper.CommonMapper