55 lines
1.6 KiB
Properties
55 lines
1.6 KiB
Properties
|
|
#Server Configuration [192.168.4.26]
|
||
|
|
server.port=8189
|
||
|
|
server.servlet.context-path=/syslogserve
|
||
|
|
#server.address=0.0.0.0
|
||
|
|
server.tomcat.uri-encoding=UTF-8
|
||
|
|
server.error.include-message=always
|
||
|
|
server.error.include-binding-errors=always
|
||
|
|
|
||
|
|
# Syslog Server Configuration
|
||
|
|
syslog.tcp.port=514
|
||
|
|
syslog.udp.port=514
|
||
|
|
syslog.max.frame.length=262144
|
||
|
|
syslog.buffer.size=1000
|
||
|
|
|
||
|
|
# APP Service Configuration
|
||
|
|
app.service.device_id=1
|
||
|
|
app.service.device_name=honeypot
|
||
|
|
app.service.vendor=changting
|
||
|
|
app.service.product_name=diting
|
||
|
|
# syslog message data_type
|
||
|
|
app.service.data_type=json
|
||
|
|
#采集探针ID
|
||
|
|
app.service.device_collect_id=${DEVICE_COLLECT_ID:1}
|
||
|
|
|
||
|
|
# kafka Configuration
|
||
|
|
spring.kafka.producer.bootstrap-servers=192.168.4.26:9092
|
||
|
|
spring.kafka.producer.topic =agent-syslog-topic
|
||
|
|
|
||
|
|
#database Configuration
|
||
|
|
spring.datasource.url=jdbc:postgresql://192.168.4.26:5432/ecosys
|
||
|
|
spring.datasource.username=postgres
|
||
|
|
spring.datasource.password=caZ2TcmXNSW8L2Ap
|
||
|
|
spring.datasource.driver-class-name=org.postgresql.Driver
|
||
|
|
|
||
|
|
# mybatis Configuration
|
||
|
|
mybatis.mapper-locations=classpath:mapper/*.xml
|
||
|
|
mybatis.type-aliases-package=com.common.entity
|
||
|
|
mybatis.configuration.map-underscore-to-camel-case=true
|
||
|
|
|
||
|
|
# 生产环境缓存配置
|
||
|
|
spring.redis.host=192.168.4.26
|
||
|
|
spring.redis.port=6379
|
||
|
|
# 密码(如果没有设置密码,可以省略)
|
||
|
|
spring.redis.password=123456
|
||
|
|
spring.redis.database=0
|
||
|
|
spring.redis.timeout=5000
|
||
|
|
#spring.redis.password=${REDIS_PASSWORD:default_prod_password}
|
||
|
|
|
||
|
|
spring.redis.lettuce.pool.max-active=20
|
||
|
|
spring.redis.lettuce.pool.max-wait=5000
|
||
|
|
spring.redis.lettuce.pool.max-idle=10
|
||
|
|
spring.redis.lettuce.pool.min-idle=5
|
||
|
|
|
||
|
|
# 生产环境缓存时间较长
|
||
|
|
spring.cache.redis.time-to-live=3600000
|