This commit is contained in:
parent
4c8ebaeab8
commit
c1611114d0
1 changed files with 5 additions and 1 deletions
|
@ -4,9 +4,9 @@ import (
|
|||
"fmt"
|
||||
"os"
|
||||
|
||||
"git.mstar.dev/mstar/goutils/other"
|
||||
"github.com/BurntSushi/toml"
|
||||
"github.com/rs/zerolog/log"
|
||||
"git.mstar.dev/mstar/goutils/other"
|
||||
)
|
||||
|
||||
type ConfigSSL struct {
|
||||
|
@ -68,6 +68,9 @@ type ConfigStorage struct {
|
|||
MaxInMemoryCacheTTL int `toml:"max_in_memory_cache_ttl"`
|
||||
// The time to live for items in redis, in seconds
|
||||
MaxRedisCacheTTL *int `toml:"max_redis_cache_ttl"`
|
||||
// Key used for encrypting sensitive information in the db
|
||||
// DO NOT CHANGE THIS AFTER SETUP
|
||||
EncryptionKey string `toml:"encryption_key"`
|
||||
}
|
||||
|
||||
type ConfigS3 struct {
|
||||
|
@ -145,6 +148,7 @@ var defaultConfig Config = Config{
|
|||
MaxInMemoryCacheSize: 1e6, // 1 Megabyte
|
||||
MaxInMemoryCacheTTL: 5,
|
||||
MaxRedisCacheTTL: nil,
|
||||
EncryptionKey: "Encryption key for sensitive information. DO NOT CHANGE THIS AFTER SETUP",
|
||||
},
|
||||
Mail: ConfigMail{
|
||||
Host: "localhost",
|
||||
|
|
Loading…
Reference in a new issue