update shorturl to use badgerhold

This commit is contained in:
Xuu
2020-10-30 11:08:04 -06:00
parent db4ac49a49
commit 6c01df76f5
15 changed files with 16578 additions and 279 deletions

View File

@@ -43,6 +43,11 @@ Config:
var defaultConfig = `
[http]
listen = ":9010"
base_url = "https//paste.dn42.us"
cors = [
"http://localhost",
"https://sour.is",
]
[module.paste]
random = "4096"
@@ -55,7 +60,9 @@ store = "data/artifact"
store = "data/image"
[module.short]
store = "data/meta.db"
index = "data/meta"
value = "data/meta"
`
var args map[string]interface{}