Update config to include s3 storage service
This commit is contained in:
parent
a94a360773
commit
daf0c3b489
2 changed files with 31 additions and 49 deletions
|
@ -70,6 +70,13 @@ type ConfigStorage struct {
|
|||
MaxRedisCacheTTL *int `toml:"max_redis_cache_ttl"`
|
||||
}
|
||||
|
||||
type ConfigS3 struct {
|
||||
KeyId string `toml:"key_id"`
|
||||
Secret string `toml:"secret"`
|
||||
Region string `toml:"region"`
|
||||
Endpoint string `toml:"endpoint"`
|
||||
}
|
||||
|
||||
type ConfigMail struct {
|
||||
Host string `toml:"host"`
|
||||
Port int `toml:"port"`
|
||||
|
@ -95,6 +102,7 @@ type Config struct {
|
|||
Storage ConfigStorage `toml:"storage"`
|
||||
Mail ConfigMail `toml:"mail"`
|
||||
Self ConfigSelf `toml:"self"`
|
||||
S3 ConfigS3 `toml:"s3"`
|
||||
}
|
||||
|
||||
var GlobalConfig Config
|
||||
|
@ -147,6 +155,16 @@ var defaultConfig Config = Config{
|
|||
SendTimeoutSecondsOverwrite: nil,
|
||||
TemplateOverwriteDirectory: nil,
|
||||
},
|
||||
Self: ConfigSelf{
|
||||
ServerActorDisplayName: "Server actor",
|
||||
ServerDisplayName: "Linstrom",
|
||||
},
|
||||
S3: ConfigS3{
|
||||
KeyId: "Example key ID",
|
||||
Secret: "Example key secret",
|
||||
Region: "Example region",
|
||||
Endpoint: "http://localhost:3900",
|
||||
},
|
||||
}
|
||||
|
||||
func (gc *ConfigGeneral) GetFullDomain() string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue