config: Prevent loading the wrong server_key

This commit is contained in:
Valentin Tolmer
2021-11-27 16:34:50 +01:00
committed by nitnelave
parent 5b5395103a
commit 9653d64eb1
2 changed files with 14 additions and 15 deletions

View File

@@ -45,6 +45,11 @@ pub struct RunOpts {
#[clap(flatten)]
pub general_config: GeneralConfigOpts,
/// Path to the file that contains the private server key.
/// It will be created if it doesn't exist.
#[clap(long, env = "LLDAP_SERVER_KEY_FILE")]
pub server_key_file: Option<String>,
/// Change ldap port. Default: 3890
#[clap(long, env = "LLDAP_LDAP_PORT")]
pub ldap_port: Option<u16>,