vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 8295688bed720c8f0b5a7bfb9b0e0586463a1004
parent 08f0de7b46d36a4e974d8e7b25a9786168cd38a5
Author: Joel Beckmeyer <joel@beckmeyer.us>
Date:   Wed, 16 Feb 2022 09:25:37 -0500

Add support for custom .env file path

Diffstat:
Msrc/config.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/config.rs b/src/config.rs @@ -56,7 +56,7 @@ macro_rules! make_config { impl ConfigBuilder { #[allow(clippy::field_reassign_with_default)] fn from_env() -> Self { - match dotenv::from_path(".env") { + match dotenv::from_path(get_env("ENV_FILE").unwrap_or_else(|| String::from(".env"))) { Ok(_) => (), Err(e) => match e { dotenv::Error::LineParse(msg, pos) => {