znpt-backend/web/src/main/resources/application-dev.yml

157 lines
4.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 开发环境配置
server:
# 服务器的HTTP端口默认为8080
port: 8888
address : 0.0.0.0 # 监听所有网络接口
servlet:
encoding:
enabled: true
charset: UTF-8
force: true
# 数据源配置
spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://39.99.201.243:3306/test?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: BUw8YW6%@^8q
druid:
# 初始连接数
initialSize: 5
# 最小连接池数量
minIdle: 10
# 最大连接池数量
maxActive: 50
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis: 300000
# 配置一个连接在池中最大生存的时间,单位是毫秒
maxEvictableIdleTimeMillis: 900000
# 配置检测连接是否有效
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
webStatFilter:
enabled: true
statViewServlet:
enabled: true
# 设置白名单,不填则允许所有访问
allow:
url-pattern: /druid/*
# 控制台管理用户名和密码
login-username: iotplatform
login-password: 123456
filter:
stat:
enabled: true
# 慢SQL记录
log-slow-sql: true
slow-sql-millis: 1000
merge-sql: true
wall:
config:
multi-statement-allow: true
# redis 配置
redis:
pool:
max-active: 3000
max-idle: 1000
max-wait: 3000
host: 39.99.201.243
port: 6379
password: diTeZn@123
timeout: 3000
# 0 gaea系统3 gaea-dev/gaea-test系统4 znpt开发5 znpt测试 6 znpt生产
database: 4
rabbitmq:
host: 39.99.201.243
port: 3389
username: dite
password: diTezN@123
## MINIO配置
#minio:
# url: http://10.20.32.11:9000
# accessKey: minio
# secretKey: minio@321
# private:
# bucket: pri
# domain:
# prefix: /minio-pri/
# public:
# bucket: pub
# domain:
# prefix: /minio/
############## Sa-Token 配置 (文档: https://sa-token.cc) ##############
sa-token:
# token 名称(同时也是 cookie 名称)
token-name: Authorization
# token 有效期(单位:秒) 默认30天-1 代表永久有效
timeout: 2592000
# token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结
active-timeout: -1
# 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录)
is-concurrent: true
# 在多人登录同一账号时,是否共用一个 token (为 true 时所有登录共用一个 token, 为 false 时每次登录新建一个 token
is-share: false
# token 风格默认可取值uuid、simple-uuid、random-32、random-64、random-128、tik
token-style: uuid
# 是否输出操作日志
is-log: true
#sip-config:
# name: 信令服务
# ip: 127.0.0.1
# port: 1074
# charset: gb2312
# domain: 3402000000
# id: 34020000002000000001
# password: 123456
# mediaType: mp4
#
#zlm-config:
# # 流媒体名称
# mediaName: 媒体服务
# # 流媒体服务商
# mediaService: ZLMdia
# # 公网ip
# publicHost:
# # 接口ip
# apiHost: 127.0.0.1
# # 接口端口
# apiPort: 8080
# # 密钥
# secretKey: 6Q76ivvVOQDsnnfOSKbtVzcYpbgy4n1G
# # 流id前缀
# streamPrefix:
# # rtp ip
# rtpHost: 127.0.0.1
# # rtp 端口
# rtpPort: 8080
# # 动态端口起始值
# dynamicPortStart: 30150
# # 动态端口结束值
# dynamicPortEnd: 30185
upload:
# 此处仅定义总的父路径,细节定义到 FilePathEnum
save-path: D:\Upload\
# 部署配置
deploy:
secret: cRc5888KAo4TxRS4y5iv35GM
build-dir: /home/dtyx/znpt-backend/build
# 工具路径
util:
enableImagePreTreatment: false
imagePreTreatmentPath: d:\
reportGeneratorPath: D:\blade_report_generator.exe
reportGeneratorTemplatePath: D:\muban