refactor: 配置文件敏感信息改为环境变量注入并优化功能开关
This commit is contained in:
@@ -100,9 +100,9 @@ spring:
|
||||
driverClassName: com.mysql.cj.jdbc.Driver
|
||||
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
|
||||
# rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
|
||||
url: jdbc:mysql://223.254.147.137:47253/starapi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
|
||||
username: apihub
|
||||
password: "[5PhJ?nAk_Ie"
|
||||
url: jdbc:mysql://${MYSQL_HOST}/starapi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
|
||||
username: ${MYSQL_USERNAME}
|
||||
password: ${MYSQL_PASSWORD}
|
||||
# # 从库数据源
|
||||
# slave:
|
||||
# lazy: true
|
||||
@@ -149,13 +149,13 @@ spring:
|
||||
spring.data:
|
||||
redis:
|
||||
# 地址
|
||||
host: 24.233.9.83
|
||||
host: ${REDIS_HOST}
|
||||
# 端口,默认为6379
|
||||
port: 6379
|
||||
# 数据库索引
|
||||
database: 0
|
||||
# redis 密码必须配置
|
||||
password: StarSee@1024
|
||||
password: ${REDIS_PASSWORD}
|
||||
# 连接超时时间
|
||||
timeout: 10s
|
||||
# 是否开启ssl
|
||||
@@ -196,7 +196,7 @@ mail:
|
||||
# 用户名(注意:如果使用foxmail邮箱,此处user为qq号)
|
||||
user: starsee.dev@gmail.com
|
||||
# 密码(注意,某些邮箱需要为SMTP服务单独设置密码,详情查看相关帮助)
|
||||
pass: qzdz ghgb zjyz ipdx
|
||||
pass: ${MAIL_PASSWORD}
|
||||
# 使用 STARTTLS安全连接,STARTTLS是对纯文本通信协议的扩展。
|
||||
starttlsEnable: true
|
||||
# 使用SSL安全连接
|
||||
|
||||
@@ -103,9 +103,9 @@ spring:
|
||||
driverClassName: com.mysql.cj.jdbc.Driver
|
||||
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
|
||||
# rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
|
||||
url: jdbc:mysql://223.254.147.137:47253/starapi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
|
||||
username: apihub
|
||||
password: "[5PhJ?nAk_Ie"
|
||||
url: jdbc:mysql://${MYSQL_HOST}/starapi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
|
||||
username: ${MYSQL_USERNAME}
|
||||
password: ${MYSQL_PASSWORD}
|
||||
# # 从库数据源
|
||||
# slave:
|
||||
# lazy: true
|
||||
@@ -152,13 +152,13 @@ spring:
|
||||
spring.data:
|
||||
redis:
|
||||
# 地址
|
||||
host: 24.233.9.83
|
||||
host: ${REDIS_HOST}
|
||||
# 端口,默认为6379
|
||||
port: 6379
|
||||
# 数据库索引
|
||||
database: 0
|
||||
# redis 密码必须配置
|
||||
password: StarSee@1024
|
||||
password: ${REDIS_PASSWORD}
|
||||
# 连接超时时间
|
||||
timeout: 10s
|
||||
# 是否开启ssl
|
||||
@@ -199,7 +199,7 @@ mail:
|
||||
# 用户名(注意:如果使用foxmail邮箱,此处user为qq号)
|
||||
user: starsee.dev@gmail.com
|
||||
# 密码(注意,某些邮箱需要为SMTP服务单独设置密码,详情查看相关帮助)
|
||||
pass: qzdz ghgb zjyz ipdx
|
||||
pass: ${MAIL_PASSWORD}
|
||||
# 使用 STARTTLS安全连接,STARTTLS是对纯文本通信协议的扩展。
|
||||
starttlsEnable: true
|
||||
# 使用SSL安全连接
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# 开发环境配置
|
||||
server:
|
||||
# 服务器的HTTP端口,默认为8080
|
||||
port: 8080
|
||||
port: 18080
|
||||
servlet:
|
||||
# 应用的访问路径
|
||||
context-path: /
|
||||
@@ -148,9 +148,9 @@ payment:
|
||||
ipn-callback-url: ${CRYPTO_IPN_CALLBACK_URL:}
|
||||
nowpayments:
|
||||
base-url: https://api.nowpayments.io/v1
|
||||
api-key: 9ZDVQ6H-GYQ4J1E-JVNB96X-F7W30P7
|
||||
api-key: ${NOWPAYMENTS_API_KEY:}
|
||||
# IPN 签名密钥,必须与 NOWPayments 后台配置一致;与 API Key 缺一不可
|
||||
ipn-secret: 5SAuvxr3Vu6eN5bYwXtJ5c1stfdldOsZ
|
||||
ipn-secret: ${NOWPAYMENTS_IPN_SECRET:}
|
||||
connect-timeout-ms: 5000
|
||||
read-timeout-ms: 15000
|
||||
# 稳定币/网络矩阵;pay-currency 必须与 NOWPayments /v1/currencies 返回的代码一致
|
||||
@@ -218,7 +218,7 @@ api-decrypt:
|
||||
springdoc:
|
||||
api-docs:
|
||||
# 是否开启接口文档
|
||||
enabled: true
|
||||
enabled: false
|
||||
info:
|
||||
# 标题
|
||||
title: '标题:StarAPI后台管理系统_接口文档'
|
||||
@@ -294,7 +294,7 @@ management:
|
||||
|
||||
--- # 统一消息推送配置
|
||||
message:
|
||||
enabled: true
|
||||
enabled: false
|
||||
# sse / websocket
|
||||
transport: sse
|
||||
# 统一访问路径
|
||||
@@ -313,7 +313,7 @@ message:
|
||||
--- # warm-flow工作流配置
|
||||
warm-flow:
|
||||
# 是否开启工作流,默认true
|
||||
enabled: true
|
||||
enabled: false
|
||||
# 是否开启设计器ui
|
||||
ui: true
|
||||
# 是否显示流程图顶部文字
|
||||
@@ -426,7 +426,7 @@ easy-es:
|
||||
spring.ai.mcp:
|
||||
server:
|
||||
# 与 starapi-admin 共用端口,默认端点为 /mcp
|
||||
enabled: true
|
||||
enabled: false
|
||||
protocol: STREAMABLE
|
||||
name: ${spring.application.name}
|
||||
version: ${project.version}
|
||||
|
||||
Reference in New Issue
Block a user