Files
senmesh-zc/src/main/resources/application.properties

156 lines
4.7 KiB
Properties
Raw Normal View History

2025-12-31 18:10:10 +08:00
spring.application.name=s-file
2025-12-23 17:40:32 +08:00
system.code=1
2025-06-11 09:42:13 +08:00
##数据源
2025-12-31 18:10:10 +08:00
spring.datasource.url=jdbc:postgresql://139.159.237.199:8608/f?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8
spring.datasource.username=postgres
spring.datasource.password=f123456
spring.datasource.driverClassName=org.postgresql.Driver
2025-06-11 09:42:13 +08:00
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
# 初始化时建立物理连接的个数
spring.datasource.druid.initial-size=50
# 最大连接池数量
spring.datasource.druid.max-active=500
# 最小连接池数量
spring.datasource.druid.min-idle=50
# 获取连接时最大等待时间,单位毫秒
spring.datasource.druid.max-wait=60000
2025-08-14 13:20:35 +08:00
spring.servlet.multipart.max-file-size=50MB
spring.servlet.multipart.max-request-size=50MB
2025-06-11 09:42:13 +08:00
spring.cloud.config.allowOverride=true
spring.cloud.config.overrideNone=true
# mybatis
mybatis.mapperLocations=classpath*:com/newyetai/**/mapper/*Mapper.xml
mybatis.configuration.map-underscore-to-camel-case=true
2025-12-31 18:10:10 +08:00
pagehelper.helperDialect=postgresql
2025-06-11 09:42:13 +08:00
pagehelper.reasonable=true
#mybatis plus
mybatis-plus.mapper-locations=classpath*:com/newyetai/**/mapper/*.xml
mybatis-plus.configuration.default-enum-type-handler=com.baomidou.mybatisplus.extension.handlers.MybatisEnumTypeHandler
mybatis-plus.type-aliases-package=com.newyetai.**.entity
mybatis-plus.type-enums-package=com.newyetai.**.enums
### 日志文件
logging.file.name=/usr/local/logs/${spring.application.name}.log
logging.pattern.console:%d{yyyy/MM/dd-HH:mm:ss} %X{traceId:-} [%thread] %-5level %logger- %msg%n
logging.pattern.file:%d{yyyy/MM/dd-HH:mm:ss} %X{traceId:-} [%thread] %-5level %logger- %msg%n
### 文件路径
file.upload-dir=/var/${spring.application.name}/upload
java.io.tmpdir=/var/${spring.application.name}/upload/tmpdir
2025-06-16 14:53:21 +08:00
#文件存储配置
2025-12-23 17:40:32 +08:00
file.storage.type=local
2025-06-16 14:53:21 +08:00
2025-06-11 09:42:13 +08:00
#发号器
#机器id:根据ip自己定义
2025-06-17 18:39:28 +08:00
code.snowflake.workid.192.168.31.135=23
2025-12-29 16:06:48 +08:00
code.snowflake.workid.192.168.1.66=24
2025-06-11 09:42:13 +08:00
code.snowflake.workid.121.37.2.171=1
code.snowflake.workid.139.159.237.199=2
2025-12-23 17:40:32 +08:00
2025-06-11 09:42:13 +08:00
##redis配置
2025-12-31 18:10:10 +08:00
spring.redis.password=
spring.redis.host=139.159.237.199
spring.redis.port=8607
2025-06-11 09:42:13 +08:00
spring.redis.lettuce.pool.min-idle=2
spring.redis.lettuce.pool.max-idle=8
spring.redis.lettuce.pool.max-active=10
spring.redis.lettuce.pool.max-wait=-1ms
2025-12-31 18:10:10 +08:00
spring.redis.database=1
2025-06-11 09:42:13 +08:00
##mq
spring.rabbitmq.host=121.37.2.171
spring.rabbitmq.port=5672
spring.rabbitmq.username=guest
spring.rabbitmq.password=lettuce.co
#开启发送失败返回
spring.rabbitmq.publisher-returns=true
#开启发送确认
spring.rabbitmq.publisher-confirms=true
#监听类型,每个consumer都有对应的channel,consumer的线程共享
spring.rabbitmq.listener.type=direct
#none发送消息后直接确认消息/auto根据消息消费的情况,智能判定消息的确认情况/manual手动确认消息的情况
spring.rabbitmq.listener.direct.acknowledge-mode=auto
#每个队列消费者数
spring.rabbitmq.listener.direct.consumers-per-queue=3
#每个消费者处理未确认消息的最大数量
spring.rabbitmq.listener.direct.prefetch=100
spring.rabbitmq.listener.direct.default-requeue-rejected=true
#支持消息的确认与返回
spring.rabbitmq.template.mandatory=true
#定制化配置
#exchange名称
rabbitmq.custom.topicExchangeName=alita_exchange
#指定消息消费者ip
rabbitmq.custom.consumerAppId=
security.useLocal=true
security.ignoring=/*.html,/favicon.ico
2025-07-17 19:07:12 +08:00
security.anonymous=/anon/**,/druid/**,/ws/**
2025-06-11 09:42:13 +08:00
security.loginPage=/login.html
security.loginSuccessPage=/
security.loginH5SuccessPage=/h5/
security.loginProcessingUrl=/login
security.allowIfAllAbstainDecisions=false
security.domain=
#不记日志路径,contains匹配
2025-07-17 19:07:12 +08:00
security.notLogs=/district,/dict/lookup,/dict/flush,/anon/dropdown,/anon/user/info,/domain_setting,/anon/config
2025-06-11 09:42:13 +08:00
security.jwt.enable=true
security.jwt.secret=abcdef
security.jwt.expiration=28800
security.jwt.header=Authorization
security.jwt.iss=${spring.application.name}
#oauth配置
security.oauth2.enable=false
#oauth配置类型:true使用数据库配置,否则配置文件
#security.oauth2.usedb=true
#websocket配置
websocket.enable=true
# 短信开关
2025-12-23 17:40:32 +08:00
sms.enable=false
2025-06-11 09:42:13 +08:00
sms.domain=dysmsapi.aliyuncs.com
2025-12-23 17:40:32 +08:00
sms.accessKeyId=
sms.accessSecret=
2025-06-11 09:42:13 +08:00
sms.regionId=default
sms.version=2017-05-25
# properties中文乱码
2025-12-23 17:40:32 +08:00
sms.signName=
sms.numLimit=0
2025-06-11 09:42:13 +08:00
#短信验证码模板配置
2025-12-23 17:40:32 +08:00
sms.phoneSms=
2025-06-11 09:42:13 +08:00
2025-07-07 10:51:42 +08:00
2025-06-11 09:42:13 +08:00
#讯飞配置
2025-12-23 17:40:32 +08:00
xf.httpAPIPassword=
2025-06-11 09:42:13 +08:00
#在控制台-我的应用获取
2025-12-23 17:40:32 +08:00
xf.appId=
xf.apiSecret=
xf.apiKey=
2025-06-11 09:42:13 +08:00
#语音听写地址
xf.iatHostUrl=https://iat-api.xfyun.cn/v2/iat
#语音合成地址
xf.ttsHostUrl=https://tts-api.xfyun.cn/v2/tts
2025-06-24 16:24:57 +08:00
#机器翻译niutrans
xf.otsHostUrl=https://ntrans.xfyun.cn/v2/ots
2025-06-25 18:11:39 +08:00
#实时语音转写
2025-12-23 17:40:32 +08:00
xf.rtasr.APIKey=
2025-07-07 10:51:42 +08:00
#deepseek配置
2025-12-23 17:40:32 +08:00
deepseek.httpAPIPassword=
2025-07-07 10:51:42 +08:00
#ai配置
#对话提供者,对应配置的PREFIX
ai.chatProvider=deepseek
2025-06-11 09:42:13 +08:00