diff --git a/crates/cli/src/server/server-default.toml b/crates/cli/src/server/server-default.toml index eedef5e..6e08695 100644 --- a/crates/cli/src/server/server-default.toml +++ b/crates/cli/src/server/server-default.toml @@ -1,25 +1,26 @@ -[http] +[http] # where to listen for incoming updates from forges addr = "0.0.0.0" port = 8080 -[webhook] +[webhook] # where forge should send updates to - should be route to 'http.addr:http.port' above (e.g. using a reverse proxy) url = "https://localhost:8080" # don't include any query path or a trailing slash -[storage] +[notification] # where updates from git-next should be sent to alert the user +type = "None" +# type = "Webhook" +# webhook = { url = "https//localhost:9090", secret = "secret-password" } + +[storage] # where local copies of repositories will be cloned (bare) into path = "./data" -[notifications] -type = "WebHook" -webhook = { url = "https://localhost:9090" } +[forge] # the forges to connect to -[forge] - -[forge.default] -forge_type = "ForgeJo" -hostname = "git.example.net" -user = "git-next" # the user to perform actions as -token = "API-Token" - -[forge.default.repos] -hello = { repo = "user/hello", branch = "main", gitdir = "/opt/git/projects/user/hello.git" } # maps to https://git.example.net/user/hello on the branch 'main' -world = { repo = "user/world", branch = "master", main = "master", next = "upcoming", "dev" = "develop" } # maps to the 'master' branch +# [forge.default] +# forge_type = "ForgeJo" +# hostname = "git.example.net" +# user = "bob" # the user to perform actions as +# token = "API-Token" +# +# [forge.default.repos] # the repos at the forge to manage +# hello = { repo = "bob/hello", branch = "main", gitdir = "/opt/git/projects/bob/hello.git" } +# world = { repo = "bob/world", branch = "master", main = "master", next = "upcoming", "dev" = "develop" }