add minio and file upload

This commit is contained in:
2026-07-08 18:42:08 +05:00
parent be3dc28e68
commit d6555e1133
364 changed files with 137053 additions and 22 deletions

View File

@@ -17,6 +17,7 @@ type Config struct {
} `yaml:"listen"`
PublicFilePath string `yaml:"public_file_path" env-required:"true"`
Storage StorageConfig `yaml:"storage"`
Minio MinioConfig `yaml:"minio"`
JwtKey string `yaml:"jwt_key" env-required:"true"`
AppVersion string `yaml:"app_version" env-required:"true"`
}
@@ -30,6 +31,14 @@ type StorageConfig struct {
Password string `yaml:"password"`
}
type MinioConfig struct {
Endpoint string `yaml:"endpoint" env-required:"true"`
AccessKey string `yaml:"access_key" env-required:"true"`
SecretKey string `yaml:"secret_key" env-required:"true"`
Bucket string `yaml:"bucket" env-required:"true"`
UseSSL bool `yaml:"use_ssl" env-default:"false"`
}
var (
instance *Config
once sync.Once