mirror of
https://gitee.com/dromara/dax-pay
synced 2026-08-06 21:26:26 +08:00
build oss相关配置调整
This commit is contained in:
@@ -94,7 +94,7 @@ public class FileUploadService {
|
||||
if (StrUtil.isNotBlank(fileName)){
|
||||
uploadPretreatment.setOriginalFilename(fileName);
|
||||
}
|
||||
// 按年月日进行分目录
|
||||
// 按年月日进行分目录, 因为目录拼接的情况, 所以开头不可以为 /
|
||||
uploadPretreatment.setPath(LocalDateTimeUtil.format(LocalDateTime.now(), "yyyy/MM/dd/"));
|
||||
|
||||
FileInfo upload = uploadPretreatment.upload();
|
||||
|
||||
@@ -6,7 +6,7 @@ spring:
|
||||
master:
|
||||
# Postgresql连接
|
||||
driver-class-name: org.postgresql.Driver
|
||||
url: jdbc:postgresql://127.0.0.1:5432/dax-pay-single?serverTimezone=Asia/Shanghai&autoReconnect=true&reWriteBatchedInserts=true
|
||||
url: jdbc:postgresql://127.0.0.1:5432/dax-pay-single-demo?serverTimezone=Asia/Shanghai&autoReconnect=true&reWriteBatchedInserts=true
|
||||
username: bootx
|
||||
password: bootx123
|
||||
hikari:
|
||||
@@ -15,21 +15,19 @@ spring:
|
||||
redis:
|
||||
host: 127.0.0.1
|
||||
port: 6379
|
||||
database: 4
|
||||
database: 14
|
||||
password: bootx123
|
||||
lettuce:
|
||||
pool:
|
||||
max-wait: 1000ms
|
||||
# 开发时显示debug日志
|
||||
logging:
|
||||
level:
|
||||
cn.bootx.**: debug
|
||||
cn.daxpay.**: debug
|
||||
org.springframework.jdbc.core: debug
|
||||
# 接口文档配置
|
||||
springdoc:
|
||||
# 默认展开对象类型的属性, 主要用在get类型的参数中
|
||||
default-flat-param-object: true
|
||||
knife4j:
|
||||
enable: true
|
||||
# 关闭swagger接口
|
||||
production: true
|
||||
# 基础脚手架配置
|
||||
bootx-platform:
|
||||
common:
|
||||
@@ -54,15 +52,11 @@ bootx-platform:
|
||||
enable-admin: true
|
||||
ignore-urls:
|
||||
- '/actuator/**'
|
||||
- '/v3/api-docs/**'
|
||||
- '/doc.html'
|
||||
- '/swagger-resources/**'
|
||||
- '/token/**'
|
||||
- '/ws/**'
|
||||
- '/demo/**'
|
||||
- '/test/**'
|
||||
- '/webjars/**'
|
||||
- '/front/**'
|
||||
- '/web/**'
|
||||
- '/h5/**'
|
||||
- '/css/**'
|
||||
- '/error'
|
||||
@@ -71,25 +65,26 @@ bootx-platform:
|
||||
# 使用后端代理访问, 线上请使用 Nginx 配置或者直连方式,效率更高
|
||||
forward-server-url: http://127.0.0.1:9999
|
||||
dax-pay:
|
||||
# 推荐只使用字母和数字, 特殊符号会导致部分通道出问题
|
||||
env: DEMO
|
||||
machine-no: 70
|
||||
dromara:
|
||||
# 注意, 不要设置 domain 访问路径, 自行进行拼接访问路径, 来保证可迁移性
|
||||
x-file-storage:
|
||||
default-platform: minio
|
||||
# 使用Nginx映射到存储路径, 然后将nginx的地址设置到 bootx-platform.starter.file-upload.file-server-url参数
|
||||
default-platform: local
|
||||
# 使用Nginx映射到存储路径
|
||||
# 实际存储地址为 storage-path(存储路径) + base-path(基础路径) + 自动生成的路径(年月日) + 文件名
|
||||
local-plus:
|
||||
- platform: local
|
||||
enable-storage: true
|
||||
base-path: /file/ # 基础路径
|
||||
storage-path: D:/data/files # 存储路径
|
||||
# 将 minio访问地址+桶名称 进行组合, 然后设置到 bootx-platform.starter.file-upload.file-server-url
|
||||
# 例如 minio地址 http://127.0.0.1:9001 桶名称 daxpay, 拼接后的地址为 http://127.0.0.1:9001/daxpay/
|
||||
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:9000 # minio访问地址
|
||||
end-point: http://127.0.0.1:9002 # minio访问地址
|
||||
bucket-name: daxpay # 存储桶名称
|
||||
base-path: /file/ # 基础存储路径
|
||||
base-path: /file/ # 基础存储路径 前缀和结尾都必须为 /
|
||||
|
||||
@@ -75,20 +75,21 @@ bootx-platform:
|
||||
# 使用后端代理访问, 线上请使用 Nginx 配置或者直连方式,效率更高
|
||||
forward-server-url: http://127.0.0.1:9999
|
||||
dax-pay:
|
||||
# 推荐只使用字母和数字, 特殊符号会导致部分通道出问题
|
||||
env: DEV
|
||||
machine-no: 60
|
||||
dromara:
|
||||
# 注意, 不要设置 domain 访问路径, 自行进行拼接访问路径, 来保证可迁移性
|
||||
x-file-storage:
|
||||
default-platform: minio
|
||||
# 使用Nginx映射到存储路径, 然后将nginx的地址设置到 bootx-platform.starter.file-upload.file-server-url参数
|
||||
default-platform: local
|
||||
# 使用Nginx映射到存储路径
|
||||
# 实际存储地址为 storage-path(存储路径) + base-path(基础路径) + 自动生成的路径(年月日) + 文件名
|
||||
local-plus:
|
||||
- platform: local
|
||||
enable-storage: true
|
||||
base-path: /file/ # 基础路径
|
||||
storage-path: D:/data/files # 存储路径
|
||||
# 将 minio访问地址+桶名称 进行组合, 然后设置到 bootx-platform.starter.file-upload.file-server-url
|
||||
# 例如 minio地址 http://127.0.0.1:9001 桶名称 daxpay, 拼接后的地址为 http://127.0.0.1:9001/daxpay/
|
||||
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
|
||||
@@ -96,4 +97,4 @@ dromara:
|
||||
secret-key: vDgpt5R4kR2UCapMzx32Rb6qZegok21dRsU6XJ1j
|
||||
end-point: http://127.0.0.1:9002 # minio访问地址
|
||||
bucket-name: daxpay # 存储桶名称
|
||||
base-path: /file/ # 基础存储路径
|
||||
base-path: /file/ # 基础存储路径 前缀和结尾都必须为 /
|
||||
|
||||
@@ -4,7 +4,7 @@ spring:
|
||||
application:
|
||||
name: dax-pay-server
|
||||
profiles:
|
||||
active: dev
|
||||
active: demo
|
||||
task:
|
||||
scheduling:
|
||||
pool:
|
||||
|
||||
Reference in New Issue
Block a user