introduce new key management

This commit is contained in:
qdequele
2020-02-06 15:41:11 +01:00
parent 5ac757a5fd
commit 257b7b4df4
18 changed files with 204 additions and 362 deletions

View File

@ -11,8 +11,8 @@ pub struct Opt {
pub http_addr: String,
/// The master key allowing you to do everything on the server.
#[structopt(long, env = "MEILI_API_KEY")]
pub api_key: Option<String>,
#[structopt(long, env = "MEILI_MASTER_KEY")]
pub master_key: Option<String>,
/// Do not send analytics to Meili.
#[structopt(long, env = "MEILI_NO_ANALYTICS")]