Simplify first time "backend.json" that's generated from new
This commit is contained in:
parent
899588d73e
commit
af7d289656
|
|
@ -121,20 +121,19 @@ func createMemoryBackend() microsub.Microsub {
|
||||||
backend.Channels = make(map[string]microsub.Channel)
|
backend.Channels = make(map[string]microsub.Channel)
|
||||||
backend.Feeds = make(map[string][]microsub.Feed)
|
backend.Feeds = make(map[string][]microsub.Feed)
|
||||||
channels := []microsub.Channel{
|
channels := []microsub.Channel{
|
||||||
microsub.Channel{UID: "0000", Name: "default"},
|
microsub.Channel{UID: "notifications", Name: "Notifications"},
|
||||||
microsub.Channel{UID: "0001", Name: "notifications"},
|
microsub.Channel{UID: "home", Name: "Home"},
|
||||||
microsub.Channel{UID: "1000", Name: "Friends"},
|
|
||||||
microsub.Channel{UID: "1001", Name: "Family"},
|
|
||||||
}
|
}
|
||||||
for _, c := range channels {
|
for _, c := range channels {
|
||||||
backend.Channels[c.UID] = c
|
backend.Channels[c.UID] = c
|
||||||
}
|
}
|
||||||
backend.NextUid = 1002
|
backend.NextUid = 1000000
|
||||||
|
|
||||||
backend.Me = "https://example.com/"
|
backend.Me = "https://example.com/"
|
||||||
|
|
||||||
log.Println(`Config file "backend.json" is created in the current directory.`)
|
log.Println(`Config file "backend.json" is created in the current directory.`)
|
||||||
log.Println(`Update "Me" variable to your website address "https://example.com/"`)
|
log.Println(`Update "Me" variable to your website address "https://example.com/"`)
|
||||||
|
log.Println(`Update "TokenEndpoint" variable to the address of your token endpoint "https://example.com/token"`)
|
||||||
return &backend
|
return &backend
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user