Add files directory, update readme

This commit is contained in:
silverpill 2021-11-26 22:37:20 +00:00
parent 81adb9b70e
commit c6b967567f
4 changed files with 10 additions and 3 deletions

3
.gitignore vendored
View file

@ -1,4 +1,5 @@
.env.local .env.local
config.yaml config.yaml
/files /files/*
!/files/.gitkeep
/target /target

View file

@ -38,7 +38,13 @@ psql -h localhost -p 5432 -U mitra mitra
### Run web service ### 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 cp config.yaml.example config.yaml

0
files/.gitkeep Normal file
View file

View file

@ -186,7 +186,7 @@ pub fn parse_config() -> Config {
}; };
}; };
config.try_instance_url().expect("invalid instance URI"); 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 config
} }