-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathapplication.yml
111 lines (104 loc) · 2.95 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
server:
port: 8803
spring:
application:
name: message-server
data:
cassandra:
contact-points: [192.168.50.111:9042]
keyspace-name: message
username: cassandra
password: 4ge4CxwcFW
local-datacenter: datacenter1
schema-action: create_if_not_exists
redis:
database: 2
host: 192.168.50.103
port: 6379
password: G!Ps&eEwtsxd7NGf
timeout: 5000
r2dbc:
url: r2dbc:postgresql://192.168.50.102:5432/postgres?currentSchema=message
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;inKStreamProcess;outKStreamProcess
poller:
fixed-delay: 500
max-messages-per-poll: 1
kafka:
binder:
brokers: 192.168.50.107:9092
replication-factor: 1
auto-add-partitions: true
# min-partition-count: 3
auto-alter-topics: true
auto-create-topics: true
streams:
binder:
functions:
message:
applicationId: message
inKStreamProcess:
applicationId: inKStreamProcess
outKStreamProcess:
applicationId: outKStreamProcess
bindings:
# 删除 topic kafka-topics.sh --zookeeper kafka-zookeeper --delete --topic im.message
message-out-0:
# producer:
# partition-key-expression: headers['partitionKey']
# partition-count: 7
destination: im.test
outKStreamProcess-in-0:
# consumer:
# # 消费特定分区
# auto-rebalance-enabled: false
# instance-count: 7
# instance-index: 1
destination: im.test
outKStreamProcess-out-0:
# producer:
# # partition-key-expression: headers['partitionKey']
# partition-count: 7
destination: im.message
inKStreamProcess-in-0:
destination: im.message
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