-
Notifications
You must be signed in to change notification settings - Fork 5
/
atom-server-common-dev.yaml
103 lines (103 loc) · 2.68 KB
/
atom-server-common-dev.yaml
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
info:
api-document: /doc.html
# ===============================
# = Log To File Config
# ===============================
logging:
logback:
rollingpolicy:
max-file-size: 100MB
max-history: 30
level:
com.alibaba.nacos.client: warn
org.springframework.cloud.function: warn
# ===============================
# = Spring Config
# ===============================
spring:
redis:
url: redis://127.0.0.1:6379
kafka:
bootstrap-servers: ${spring.cloud.stream.kafka.binder.brokers}
zipkin:
sender:
type: kafka
cloud:
loadbalancer:
cache:
ttl: 5s
stream:
default-binder: kafka
kafka:
binder:
brokers: 127.0.0.1:9092
# 0代表:不进行消息接收是否成功的确认(默认值);
# 1代表:当Leader副本接收成功后,返回接收成功确认信息;
# -1代表:当Leader和Follower副本都接收成功后,返回接收成功确认信息;
required-acks: -1
sentinel:
datasource:
nacos-degrade:
nacos:
username: ${spring.cloud.nacos.username}
password: ${spring.cloud.nacos.password}
server-addr: ${spring.cloud.nacos.server-addr}
data-id: sentinel-degrade-${spring.profiles.active}
namespace: ${spring.cloud.nacos.discovery.namespace}
group-id: ${spring.profiles.active}
data-type: json
rule-type: degrade
# ===============================
# = JPA / HIBERNATE
# ===============================
jpa:
show-sql: true
hibernate:
ddl-auto: update
naming:
implicit-strategy: org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl
# ===============================
# = DATA SOURCE
# ===============================
datasource:
hikari:
maximum-pool-size: 5
minimum-idle: 5
pool-name: acp-cloud-admin
max-lifetime: 480000
idle-timeout: 300000
connection-timeout: 10000
read-only: false
# ===============================
# = Feign Config
# ===============================
feign:
httpclient:
enabled: false
max-connections: 1000
time-to-live: 900
time-to-live-unit: seconds
follow-redirects: true
okhttp:
enabled: true
sentinel:
enabled: true
client:
config:
default:
connect-timeout: 10000
read-timeout: 30000
loggerLevel: full
# ===============================
# = Security Config
# ===============================
security:
oauth2:
resource:
token-info-uri: http://oauth2-server/open/inner/check-token
acp:
swagger:
enabled: true
cloud:
zookeeper:
connect: 127.0.0.1:21810