From cb3c12cdda013589f3ccab99f53bd4faf3f25c88 Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Tue, 30 Aug 2022 02:09:49 +0100 Subject: [PATCH] Add example config files that can be used for local development with no extra changes --- chartered-git/config-example.toml | 8 ++++++++ chartered-web/config-example.toml | 14 ++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/chartered-git/config-example.toml b/chartered-git/config-example.toml new file mode 100644 index 0000000..c5a2755 100644 --- /dev/null +++ a/chartered-git/config-example.toml @@ -1,0 +1,8 @@ +bind_address = "127.0.0.1:2233" # address to bind SSH server to +database_uri = "sqlite:///tmp/chartered.db" # must build with either sqlite or postgres features accordingly +web_base_uri = "http://localhost:8888/" # URI of chartered-web + +[committer] +name = "Chartered" +email = "noreply@chart.rs" +message = "Updated crates!" diff --git a/chartered-web/config-example.toml b/chartered-web/config-example.toml new file mode 100644 index 0000000..774a8ee 100644 --- /dev/null +++ a/chartered-web/config-example.toml @@ -1,0 +1,14 @@ +bind_address = "127.0.0.1:8888" # address to bind server to, don't forget to configure the frontend too via the BASE_URL env var +database_uri = "sqlite:///tmp/chartered.db" # must build with either sqlite or postgres features accordingly +storage_uri = "file:///tmp/chartered" # this can also be an S3 URI +frontend_base_uri = "http://localhost:1234/" # URI for your chartered-frontend instance +encryption_key = "thisisanexamplekeydontuseme4prod" # any 32 char string will do + +[auth.password] +enabled = true + +# [auth.gitlab] +# enabled = true +# discovery_uri = "https://gitlab.com/" +# client_id = "[client-id]" +# client_secret = "[client-secret]" -- rgit 0.1.3