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 }