fix: upload image issues
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user