build sql脚本更新和添加生产环境配置文件

This commit is contained in:
DaxPay
2024-12-18 15:54:12 +08:00
parent 0bfc0c6c97
commit 2a0508e452
4 changed files with 345 additions and 283 deletions

View File

@@ -0,0 +1,85 @@
spring:
datasource:
dynamic:
primary: master
datasource:
master:
# Postgresql连接
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://postgresql:5432/dax-pay-single?serverTimezone=Asia/Shanghai&autoReconnect=true&reWriteBatchedInserts=true
username: bootx
password: bootx123
# MySQL连接
# driver-class-name: com.mysql.cj.jdbc.Driver
# url: jdbc:mysql://mysql:3306/dax-pay-single?serverTimezone=GMT%2B8&characterEncoding=utf8&allowMultiQueries=true&useSSL=false&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
# username: root
# password: bootx123
hikari:
keepalive-time: 300000
data:
redis:
host: redis
port: 6379
database: 5
password: bootx123
lettuce:
pool:
max-wait: 1000ms
# 接口文档配置
knife4j:
# 开启接口文档增强特性
enable: true
# 是否为生产环境, 为true关闭swagger接口
production: true
# 基础脚手架配置
bootx-platform:
starter:
auth:
# 是否启用超级管理员登录
enable-admin: false
# 用户管理列表中是否显示超级管理员
admin-in-list: false
ignore-urls:
- '/actuator/**'
- '/token/**'
- '/ws/**'
- '/v3/api-docs/**'
- '/doc.html'
- '/swagger-resources/**'
- '/webjars/**'
- '/storage/**'
- '/web/**'
- '/h5/**'
- '/css/**'
- '/error'
- '/favicon.ico'
audit-log:
ip2region:
# 默认使用索引模式
search-type: vector_index
# 文件存储地址
file-path: /data/ip2region/ip2region.xdb
dax-pay:
# 推荐只使用字母和数字, 特殊符号会导致部分通道出问题
env: DAX
machine-no: 70
dromara:
# 注意, 不要设置 domain 访问路径, 自行进行拼接访问路径, 来保证可迁移性
x-file-storage:
default-platform: local
# 使用Nginx映射到存储路径
# 实际存储地址为 storage-path(存储路径) + base-path(基础路径) + 自动生成的路径(年月日) + 文件名
local-plus:
- platform: local
enable-storage: true
base-path: /file/ # 基基础存储路径 前缀和结尾都必须为 /
storage-path: /data/files/ # 存储路径, 结尾必须为 /
# 例如 minio地址 http://127.0.0.1:9002 桶名称 daxpay, 拼接后的地址为 http://127.0.0.1:9002/daxpay/
minio:
- platform: minio
enable-storage: true
access-key: yDAArSoyQAligC2IGf7C
secret-key: vDgpt5R4kR2UCapMzx32Rb6qZegok21dRsU6XJ1j
end-point: http://127.0.0.1:9002 # minio访问地址
bucket-name: daxpay # 存储桶名称
base-path: /file/ # 基础存储路径 前缀和结尾都必须为 /