add image and artifact stores

This commit is contained in:
Xuu
2020-09-04 17:18:58 -06:00
parent a55162b6b4
commit 61e4b82e84
18 changed files with 2090 additions and 224 deletions

View File

@@ -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