add minio and file upload
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user