Add config page, and configuration for the base URL, so the bookmarklet will work on remote machines.

This commit is contained in:
2022-05-26 12:19:29 +09:30
parent 0fc2a597cd
commit cbe455b566
9 changed files with 106 additions and 10 deletions

View File

@@ -13,12 +13,13 @@ func main() {
dbh := db.DB{}
dbh.Open("badger")
bmm := db.NewBookmarkManager(&dbh)
cmm := db.NewConfigManager(&dbh)
go func() { version.UpdateVersionInfo() }()
log.Printf("linkallet verison %s starting", version.Is())
server := web.Create(bmm)
server := web.Create(bmm, cmm)
go bmm.RunQueue()
go bmm.UpdateContent()
server.Start()