59 lines
1.6 KiB
Plaintext
59 lines
1.6 KiB
Plaintext
server:
|
|
port: 8083
|
|
|
|
logging:
|
|
config: classpath:logback.xml
|
|
|
|
spring:
|
|
kafka:
|
|
producer:
|
|
bootstrap_servers: kafka1:9092,kafka2:9092
|
|
retries: 5
|
|
batch_size: 16384
|
|
replication_factor: 1
|
|
partitions: 3
|
|
topic_new_email_remind: topic-gitlink-new-email-remind
|
|
# 需要初始化的topic, 添加新的topic后要在这里加上, 用逗号隔开
|
|
topics: ${spring.kafka.producer.topic_new_email_remind}
|
|
consumer:
|
|
bootstrap_servers: kafka1:9092,kafka2:9092
|
|
group_id: group-gitlink-notification
|
|
group_id_email: group-gitlink-email
|
|
group_id_new_email_remind: group-gitlink-new-email-remind
|
|
auto_offset_reset: earliest
|
|
max_poll_records: 100
|
|
enable-auto-commit: true
|
|
auto-commit-interval: 1S
|
|
topic: topic-gitlink-notification
|
|
topic_email: topic-gitlink-email
|
|
topic_new_email_remind: topic-gitlink-new-email-remind
|
|
listener:
|
|
concurrency: 3
|
|
ack-mode: record
|
|
|
|
redis:
|
|
database: 0
|
|
host: redis
|
|
port: 6379
|
|
password:
|
|
pool:
|
|
max-active: 200
|
|
max-wait: -1
|
|
max-idle: 10
|
|
min-idle: 0
|
|
timeout: 1000
|
|
|
|
datasource:
|
|
driver-class-name: com.mysql.jdbc.Driver
|
|
url: jdbc:mysql://mysql:3306/gitlink_notification?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&serverTimezone=GMT%2B8&allowMultiQueries=true&useSSL=false
|
|
username: gitlink
|
|
password: giTlinK0^827
|
|
|
|
jackson:
|
|
date-format: yyyy-MM-dd HH:mm:ss
|
|
time-zone: GMT+8
|
|
serialization:
|
|
indent_output: true
|
|
fail_on_empty_beans: false
|
|
|
|
white-list: '*' |