fix: upload image issues

This commit is contained in:
2025-12-31 17:42:51 +08:00
parent 5a364a995a
commit 5ed6262e02
6 changed files with 104 additions and 29 deletions

View File

@@ -22,7 +22,6 @@ Port = 8080
# Host = "0.0.0.0"
# 全局路由前缀(可选)
# BaseURI = "/api/v1"
[Http.Cors]
# dev CORS for Vite dev servers
Mode = "dev"
@@ -47,6 +46,7 @@ AllowHeaders = "Content-Type,Authorization"
AllowMethods = "GET,POST,PUT,PATCH,DELETE,OPTIONS"
ExposeHeaders = "*"
AllowCredentials = true
# =========================
# 数据库配置
# =========================
@@ -126,3 +126,16 @@ Format = "json"
# Output = "./logs/app.log"
# 是否启用调用者信息(文件名:行号)
EnableCaller = true
# =========================
# 存储配置
# =========================
[Storage]
# 存储类型local | s3
Type = "local"
# 本地存储路径
LocalPath = "./storage"
# 签名密钥
Secret = "your-storage-secret"
# 公共访问URL前缀
BaseURL = "http://localhost:8080/v1/storage"