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

157 lines
4.3 KiB
YAML
Raw Normal View History

2025-04-10 14:07:11 +08:00
# 开发环境配置
server:
# 服务器的HTTP端口默认为8080
2025-04-26 02:28:16 +08:00
port: 8888
address : 0.0.0.0 # 监听所有网络接口
2025-08-05 20:31:52 +08:00
servlet:
encoding:
enabled: true
charset: UTF-8
force: true
2025-04-10 14:07:11 +08:00
# 数据源配置
spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.cj.jdbc.Driver
2025-08-06 17:51:42 +08:00
url: jdbc:mysql://39.99.201.243:3306/test?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
2025-04-10 14:07:11 +08:00
username: root
2025-04-26 02:28:16 +08:00
password: BUw8YW6%@^8q
2025-04-10 14:07:11 +08:00
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 配置
2025-04-18 20:37:01 +08:00
redis:
pool:
max-active: 3000
max-idle: 1000
max-wait: 3000
host: 39.99.201.243
port: 6379
2025-04-26 02:28:16 +08:00
password: diTeZn@123
2025-04-18 20:37:01 +08:00
timeout: 3000
2025-04-24 20:05:14 +08:00
# 0 gaea系统3 gaea-dev/gaea-test系统4 znpt开发5 znpt测试 6 znpt生产
2025-04-18 20:37:01 +08:00
database: 4
2025-04-26 02:28:16 +08:00
rabbitmq:
host: 39.99.201.243
port: 3389
username: dite
password: diTezN@123
2025-04-10 14:07:11 +08:00
## 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/
2025-04-18 20:37:01 +08:00
2025-05-23 17:52:58 +08:00
############## 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
2025-07-28 16:33:21 +08:00
#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
2025-04-26 02:28:16 +08:00
upload:
# 此处仅定义总的父路径,细节定义到 FilePathEnum
save-path: D:\Upload\
2025-04-26 02:28:16 +08:00
2025-06-25 10:31:06 +08:00
# 部署配置
deploy:
secret: cRc5888KAo4TxRS4y5iv35GM
2025-06-25 13:49:24 +08:00
build-dir: /home/dtyx/znpt-backend/build
2025-06-25 13:46:02 +08:00
# 工具路径
util:
enableImagePreTreatment: false
imagePreTreatmentPath: d:\
reportGeneratorPath: D:\blade_report_generator.exe
reportGeneratorTemplatePath: D:\muban