forked from nedphae/contact-center
-
Notifications
You must be signed in to change notification settings - Fork 0
/
application.yml
90 lines (82 loc) · 2.37 KB
/
application.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
server:
port: 8801
spring:
application:
name: im-server
netty-websocket:
name: websocket-server
port: 8802
service-id: ${spring.netty-websocket.name}:${vcap.application.instance_id:${spring.application.instance_id:${spring.netty-websocket.port}}}
redis:
database: 0
host: 192.168.50.103
port: 6379
password: G!Ps&eEwtsxd7NGf
timeout: 5000
r2dbc:
url: r2dbc:postgresql://192.168.50.102:5432/postgres?currentSchema=im
username: postgres
password: JpESiz1nHf
pool:
enabled: true
# security:
# oauth2:
# resourceserver:
# jwt:
# jwk-set-uri: http://localhost:8000/.well-known/jwks.json
cloud:
inetutils:
ignored-interfaces:
- eth*
preferred-networks:
- 192.168.*
consul:
host: 192.168.50.108
port: 80
discovery:
prefer-ip-address: true
instanceId: ${spring.application.name}:${vcap.application.instance_id:${spring.application.instance_id:${server.port}}}
# health-check-url: http://${spring.cloud.client.ip-address}:${server.port}/actuator/health
loadbalancer:
ribbon:
enabled: false
stream:
function:
definition: message;messageStreamProcess;conversationStreamProcess
poller:
fixed-delay: 500
max-messages-per-poll: 1
kafka:
binder:
brokers: 192.168.50.107:9092
replication-factor: 1
streams:
binder:
functions:
message:
applicationId: message
messageStreamProcess:
applicationId: messageStreamProcess
bindings:
message-out-0:
# 使用 StatefulSet 创建固定名称的 pod
destination: ${spring.cloud.client.hostname:im}.message
messageStreamProcess-in-0:
destination: ${spring.cloud.client.hostname:im}.message
conversationStreamProcess-in-0:
destination: ${spring.cloud.client.hostname:im}.conv
security:
oauth2:
client:
provider:
authProvider:
token-uri: http://oauth2-auth-server/oauth/token
registration:
authProvider:
client-id: inner_client
client-secret: test_secret
authorization-grant-type: client_credentials
logging:
level:
root: info
com.corundumstudio.socketio: debug