dify-proxy-backend/src/main/resources/application-prod.yml

75 lines
2.4 KiB
YAML
Raw Normal View History

2025-04-22 11:04:40 +08:00
server:
port: 8081
mybatis-plus:
type-aliases-package: com.zsc.edu.dify.modules.*.entity
mapper-locations: classpath*:mappers/*/*.xml
2025-04-22 11:04:40 +08:00
type-handlers-package: com.zsc.edu.dify.framework.mybatisplus
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler
map-underscore-to-camel-case: true
2025-04-22 11:04:40 +08:00
spring:
datasource:
url: jdbc:postgresql://${POSTGRES_HOST:postgres}:5432/dify?ssl=false&TimeZone=Asia/Shanghai
2025-04-22 11:04:40 +08:00
username: postgres
password: postgres
2025-04-22 11:04:40 +08:00
driver-class-name: org.postgresql.Driver
hikari:
max-lifetime: 1800000
idle-timeout: 600000
validation-timeout: 5000
data:
redis:
host: 43.139.10.64
port: 16379
password:
2025-04-22 11:04:40 +08:00
servlet:
multipart:
max-file-size: 40MB
max-request-size: 40MB
jackson:
# 属性为空不序列化
default-property-inclusion: non_null
2025-04-22 11:04:40 +08:00
mail:
# 配置 SMTP 服务器地址
host: smtp.qq.com
# 发送者邮箱
username: 2179732328@qq.com
# 配置密码,注意不是真正的密码,而是刚刚申请到的授权码
password: mabpnbtqqezjdjde
# 端口号465或587
port: 587
# 默认的邮件编码为UTF-8
default-encoding: UTF-8
# 配置SSL 加密工厂
properties:
mail:
smtp:
auth: true
starttls:
enable: true
2025-04-22 11:04:40 +08:00
socketFactoryClass: javax.net.ssl.SSLSocketFactory
#表示开启 DEBUG 模式,这样,邮件发送过程的日志会在控制台打印出来,方便排查错误
debug: true
2025-04-22 11:04:40 +08:00
storage:
attachment: ./storage/attachment
temp: ./storage/temp
jwt:
secret: your_secret_key_here
expiration: 3600
dify:
url: http://${DIFY_HOST:localhost}/ # 请替换为实际的 Dify 服务地址
server:
email: ${DIFY_EMAIL:admin@admin.com} # 请替换为实际的 Dify 服务邮箱,若不需要调用 server相关接口可不填
password: ${DIFY_PASSWORD:Anheng@keji_777} # 请替换为实际的 Dify 服务密码,若不需要调用 server相关接口可不填
dataset:
api-key: ${DIFY_DATASET_API_KEY:dataset-kN5WTJ8jR877YfN1A34JceVg} # 请替换为实际的知识库api-key, 若不需要调用知识库可不填
guangzhou:
url: ${GUANGZHOU_HOST:http://47.112.173.8:6806/api/v1}
api-key: ${GUANGZHOU_API_KEY:ed01e58b-c537-4837-9907-8d9bec2efa55}