ai助手后端配置: 武汉和北京配置分离
This commit is contained in:
parent
4230df9f50
commit
113229449c
|
@ -0,0 +1,51 @@
|
|||
# 北京环境配置
|
||||
server:
|
||||
environment: beijing
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
opengauss:
|
||||
type: com.zaxxer.hikari.HikariDataSource
|
||||
driver-class-name: org.opengauss.Driver
|
||||
jdbc-url: jdbc:opengauss://${db-host:192.168.1.211}:${db-port:6600}/${db-name:bridb}?tcpKeepAlive=true&socketTimeout=30&connectTimeout=10
|
||||
username: ${db-username:bripg}
|
||||
password: ${db-passwd:Chuangrui139*}
|
||||
postgresql:
|
||||
type: com.zaxxer.hikari.HikariDataSource
|
||||
driver-class-name: org.postgresql.Driver
|
||||
jdbc-url: jdbc:postgresql://${pg-db-host:192.168.1.211}:${pg-db-port:5432}/${pg-db-name:dify}?tcpKeepAlive=true&socketTimeout=30&connectTimeout=10
|
||||
username: ${pg-db-username:postgres}
|
||||
password: ${pg-db-passwd:difyai123456}
|
||||
|
||||
redis:
|
||||
database: 0
|
||||
host: ${redis-host:192.168.1.211}
|
||||
port: ${redis-port:6379}
|
||||
password: ${redis-password:difyai123456}
|
||||
jedis:
|
||||
pool:
|
||||
max-active: 200
|
||||
max-wait: -1
|
||||
max-idle: 10
|
||||
min-idle: 0
|
||||
timeout: 5000
|
||||
|
||||
bjtds:
|
||||
mqtt:
|
||||
host: tcp://${mqtt-hostname:192.168.1.211}:${mqtt-port:1883}
|
||||
auth:
|
||||
username: ${mqtt-username:bjtds}
|
||||
password: ${mqtt-password:bjtds2019}
|
||||
filePath:
|
||||
uploadPath: ${upload-file-path:D:\bjtds\}
|
||||
pdfFilePath: ${pdf-file-path:D:\bjtds\pdfFile\}
|
||||
difyUploadPath: ${dify-upload-path:D:\bjtds\difyUploadFile\}
|
||||
pdfFileTempPath: ${pdf-file-temp-path:D:\bjtds\pdfTempFile\pdfFile\}
|
||||
|
||||
dify:
|
||||
url: ${dify-url:http://192.168.1.211:16780} # 北京环境 Dify 服务地址
|
||||
server:
|
||||
email: bjtds@bjtds.com # 请替换为实际的 Dify 服务邮箱,若不需要调用 server相关接口可不填
|
||||
password: 123456Aa # 请替换为实际的 Dify 服务密码,若不需要调用 server相关接口可不填
|
||||
dataset:
|
||||
api-key: ${dify-dataset-api-key:dataset-0Hij9IwoWYbJe1vvwVh8y7DS} # 请替换为实际的知识库api-key, 若不需要调用知识库可不填
|
|
@ -0,0 +1,51 @@
|
|||
# 武汉环境配置
|
||||
server:
|
||||
environment: wuhan
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
opengauss:
|
||||
type: com.zaxxer.hikari.HikariDataSource
|
||||
driver-class-name: org.opengauss.Driver
|
||||
jdbc-url: jdbc:opengauss://${db-host:192.168.8.253}:${db-port:6600}/${db-name:bridb}?tcpKeepAlive=true&socketTimeout=30&connectTimeout=10
|
||||
username: ${db-username:bripg}
|
||||
password: ${db-passwd:Chuangrui139*}
|
||||
postgresql:
|
||||
type: com.zaxxer.hikari.HikariDataSource
|
||||
driver-class-name: org.postgresql.Driver
|
||||
jdbc-url: jdbc:postgresql://${pg-db-host:192.168.8.253}:${pg-db-port:5432}/${pg-db-name:dify}?tcpKeepAlive=true&socketTimeout=30&connectTimeout=10
|
||||
username: ${pg-db-username:postgres}
|
||||
password: ${pg-db-passwd:difyai123456}
|
||||
|
||||
redis:
|
||||
database: 0
|
||||
host: ${redis-host:192.168.8.253}
|
||||
port: ${redis-port:6379}
|
||||
password: ${redis-password:difyai123456}
|
||||
jedis:
|
||||
pool:
|
||||
max-active: 200
|
||||
max-wait: -1
|
||||
max-idle: 10
|
||||
min-idle: 0
|
||||
timeout: 5000
|
||||
|
||||
bjtds:
|
||||
mqtt:
|
||||
host: tcp://${mqtt-hostname:192.168.8.253}:${mqtt-port:1883}
|
||||
auth:
|
||||
username: ${mqtt-username:bjtds}
|
||||
password: ${mqtt-password:bjtds2019}
|
||||
filePath:
|
||||
uploadPath: ${upload-file-path:D:\bjtds\}
|
||||
pdfFilePath: ${pdf-file-path:D:\bjtds\pdfFile\}
|
||||
difyUploadPath: ${dify-upload-path:D:\bjtds\difyUploadFile\}
|
||||
pdfFileTempPath: ${pdf-file-temp-path:D:\bjtds\pdfTempFile\pdfFile\}
|
||||
|
||||
dify:
|
||||
url: ${dify-url:http://192.168.8.253:16780} # 武汉环境 Dify 服务地址
|
||||
server:
|
||||
email: bjtds@bjtds.com # 请替换为实际的 Dify 服务邮箱,若不需要调用 server相关接口可不填
|
||||
password: 123456Aa # 请替换为实际的 Dify 服务密码,若不需要调用 server相关接口可不填
|
||||
dataset:
|
||||
api-key: ${dify-dataset-api-key:dataset-0Hij9IwoWYbJe1vvwVh8y7DS} # 请替换为实际的知识库api-key, 若不需要调用知识库可不填
|
|
@ -13,28 +13,23 @@ server:
|
|||
spring:
|
||||
application:
|
||||
name: brichat-service
|
||||
|
||||
# 环境切换配置 - 快速切换环境,修改这里即可
|
||||
# 可选值: wuhan, beijing
|
||||
# 线上部署时可通过环境变量 SPRING_PROFILES_ACTIVE 覆盖
|
||||
profiles:
|
||||
active: wuhan
|
||||
|
||||
# ????????
|
||||
# 文件上传配置
|
||||
servlet:
|
||||
multipart:
|
||||
max-request-size: 10MB
|
||||
max-file-size: 10MB
|
||||
|
||||
# ???????
|
||||
datasource:
|
||||
# ???????
|
||||
opengauss:
|
||||
type: com.zaxxer.hikari.HikariDataSource
|
||||
driver-class-name: org.opengauss.Driver
|
||||
jdbc-url: jdbc:opengauss://${db-host:192.168.8.253}:${db-port:6600}/${db-name:bridb}?tcpKeepAlive=true&socketTimeout=30&connectTimeout=10
|
||||
username: ${db-username:bripg}
|
||||
password: ${db-passwd:Chuangrui139*}
|
||||
postgresql:
|
||||
type: com.zaxxer.hikari.HikariDataSource
|
||||
driver-class-name: org.postgresql.Driver
|
||||
jdbc-url: jdbc:postgresql://${pg-db-host:192.168.8.253}:${pg-db-port:5432}/${pg-db-name:dify}?tcpKeepAlive=true&socketTimeout=30&connectTimeout=10
|
||||
username: ${pg-db-username:postgres}
|
||||
password: ${pg-db-passwd:difyai123456}
|
||||
# 数据源配置已移至对应的环境配置文件
|
||||
# application-wuhan.yml 和 application-beijing.yml
|
||||
|
||||
|
||||
data:
|
||||
mongodb:
|
||||
uri: ${mongo-uri:mongodb://bjtds:bjtds2019@localhost:27017/bjtds}
|
||||
|
@ -47,11 +42,9 @@ spring:
|
|||
jackson:
|
||||
time-zone: GMT+8
|
||||
|
||||
# Redis配置已移至对应的环境配置文件
|
||||
redis:
|
||||
database: 0
|
||||
host: ${redis-host:192.168.8.253}
|
||||
port: ${redis-port:6379}
|
||||
password: ${redis-password:difyai123456}
|
||||
jedis:
|
||||
pool:
|
||||
max-active: 200
|
||||
|
@ -70,8 +63,8 @@ mybatis-plus:
|
|||
id-type: auto # ????
|
||||
|
||||
bjtds:
|
||||
# MQTT配置已移至对应的环境配置文件
|
||||
mqtt:
|
||||
host: tcp://${mqtt-hostname:localhost}:${mqtt-port:1883}
|
||||
auth:
|
||||
username: ${mqtt-username:bjtds}
|
||||
password: ${mqtt-password:bjtds2019}
|
||||
|
@ -83,8 +76,8 @@ bjtds:
|
|||
|
||||
|
||||
|
||||
# Dify配置已移至对应的环境配置文件,保留公共配置
|
||||
dify:
|
||||
url: ${dify-url:http://192.168.8.253:16780} # 请替换为实际的 Dify 服务地址
|
||||
server:
|
||||
email: bjtds@bjtds.com # 请替换为实际的 Dify 服务邮箱,若不需要调用 server相关接口可不填
|
||||
password: 123456Aa # 请替换为实际的 Dify 服务密码,若不需要调用 server相关接口可不填
|
||||
|
|
Loading…
Reference in New Issue