From c6b967567f92f6518d5e09bbfbb1eb91fd992ce6 Mon Sep 17 00:00:00 2001 From: silverpill Date: Fri, 26 Nov 2021 22:37:20 +0000 Subject: [PATCH] Add files directory, update readme --- .gitignore | 3 ++- README.md | 8 +++++++- files/.gitkeep | 0 src/config.rs | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 files/.gitkeep diff --git a/.gitignore b/.gitignore index d6bfdaa..e63cca3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .env.local config.yaml -/files +/files/* +!/files/.gitkeep /target diff --git a/README.md b/README.md index bd91b22..1c70f7f 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,13 @@ psql -h localhost -p 5432 -U mitra mitra ### Run web service -Create config file: +Generate instance key: + +``` +cargo run --bin mitractl generate-rsa-key +``` + +Create config file, set `instance_rsa_key`, adjust other settings if needed: ``` cp config.yaml.example config.yaml diff --git a/files/.gitkeep b/files/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/config.rs b/src/config.rs index b3126c7..4bbfa79 100644 --- a/src/config.rs +++ b/src/config.rs @@ -186,7 +186,7 @@ pub fn parse_config() -> Config { }; }; config.try_instance_url().expect("invalid instance URI"); - config.try_instance_rsa_key().expect("invalid RSA private key"); + config.try_instance_rsa_key().expect("invalid instance RSA key"); config }