This commit is contained in:
2025-10-25 08:23:36 +08:00
parent 6b0a88ed4c
commit e5cd2700aa
3 changed files with 67 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ type Config struct {
rest.RestConf
Database DatabaseConfig
S3 S3Config
JWT JWTConfig
}
type DatabaseConfig struct {
@@ -20,3 +21,9 @@ type S3Config struct {
Endpoint string `json:",optional"` // Optional: for S3-compatible services
PresignedURLExpiration int64 `json:",default=3600"` // Default 1 hour
}
type JWTConfig struct {
Secret string
Issuer string
ExpiresIn int64
}