|
|
|
@ -35,6 +35,7 @@ func main() {
|
|
|
|
|
httpaddr = flag.String("httpaddr", ":8080", "Web server address and port") |
|
|
|
|
dbpath = flag.String("dbpath", "bolt.db", "The path to store the lowry status database") |
|
|
|
|
ro = flag.Bool("ro", false, "Read-Only mode") |
|
|
|
|
noLockUsers = flag.Bool("noLockUsers", false, "Don't lock users (mostly useful for development)") |
|
|
|
|
giteaURL = flag.String("giteaURL", "", "Gitea server address") |
|
|
|
|
token = flag.String("token", "", "Gitea admin token") |
|
|
|
|
cloneAddr = flag.String("cloneAddr", "", "Template repo address to copy") |
|
|
|
@ -60,7 +61,9 @@ func main() {
|
|
|
|
|
} |
|
|
|
|
g := gitea.Init(*giteaURL, *token, *cloneAddr, *webhookRepoURL, *webhookRepoSecret, *webhookURL, *webhookSecret) |
|
|
|
|
|
|
|
|
|
go updateUsers(l) |
|
|
|
|
if !*noLockUsers { |
|
|
|
|
go updateUsers(l) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ldb, err := db.Init(*dbpath) |
|
|
|
|
if err != nil { |
|
|
|
|