Make use of the BAIBOT_PERSISTENCE_SESSION_ENCRYPTION_KEY environment variable for configuring config.persistence.session_encryption_key
Seems like we already had a constant defined, but weren't making use of it.
This commit is contained in:
@@ -51,6 +51,9 @@ pub fn load() -> anyhow::Result<Config> {
|
|||||||
cfg_env::BAIBOT_PERSISTENCE_DATA_DIR_PATH => {
|
cfg_env::BAIBOT_PERSISTENCE_DATA_DIR_PATH => {
|
||||||
config.persistence.data_dir_path = Some(value);
|
config.persistence.data_dir_path = Some(value);
|
||||||
}
|
}
|
||||||
|
cfg_env::BAIBOT_PERSISTENCE_SESSION_ENCRYPTION_KEY => {
|
||||||
|
config.persistence.session_encryption_key = Some(value);
|
||||||
|
}
|
||||||
cfg_env::BAIBOT_PERSISTENCE_CONFIG_ENCRYPTION_KEY => {
|
cfg_env::BAIBOT_PERSISTENCE_CONFIG_ENCRYPTION_KEY => {
|
||||||
config.persistence.config_encryption_key = Some(value);
|
config.persistence.config_encryption_key = Some(value);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user