add image and artifact stores
This commit is contained in:
@@ -46,7 +46,14 @@ listen = ":9010"
|
||||
|
||||
[module.paste]
|
||||
random = "4096"
|
||||
store = "data/"
|
||||
store = "data/paste"
|
||||
|
||||
[module.artifact]
|
||||
store = "data/artifact"
|
||||
|
||||
[module.image]
|
||||
store = "data/image"
|
||||
|
||||
`
|
||||
|
||||
var args map[string]interface{}
|
||||
@@ -93,7 +100,7 @@ func init() {
|
||||
viper.AddConfigPath(".")
|
||||
|
||||
viper.SetConfigType("toml")
|
||||
viper.ReadConfig(bytes.NewBuffer([]byte(defaultConfig)))
|
||||
_ = viper.ReadConfig(bytes.NewBuffer([]byte(defaultConfig)))
|
||||
|
||||
err = viper.MergeInConfig()
|
||||
if err != nil { // Handle errors reading the config file
|
||||
|
||||
Reference in New Issue
Block a user