Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
refactor(configs): make TOML file an optional source of application configuration (#2185)
Sanchith Hegde69fbebf46300
diff --git a/crates/drainer/src/settings.rs b/crates/drainer/src/settings.rsindex 1aa8e7a95a..cc64a99e46 100644--- a/crates/drainer/src/settings.rs+++ b/crates/drainer/src/settings.rs@@ -147,7 +147,7 @@ impl Settings {let config_path = router_env::Config::config_path(&environment.to_string(), config_path);let config = router_env::Config::builder(&environment.to_string())?- .add_source(File::from(config_path).required(true))+ .add_source(File::from(config_path).required(false)).add_source(Environment::with_prefix("DRAINER").try_parsing(true)diff --git a/crates/router/src/configs/settings.rs b/crates/router/src/configs/settings.rsindex c4f1b2b62b..2e10de4fb0 100644--- a/crates/router/src/configs/settings.rs+++ b/crates/router/src/configs/settings.rs@@ -681,7 +681,7 @@ impl Settings {let config_path = router_env::Config::config_path(&environment.to_string(), config_path);let config = router_env::Config::builder(&environment.to_string())?- .add_source(File::from(config_path).required(true))+ .add_source(File::from(config_path).required(false)).add_source(Environment::with_prefix("ROUTER").try_parsing(true)diff --git a/crates/router_env/src/logger/config.rs b/crates/router_env/src/logger/config.rsindex e243742283..269759ed44 100644--- a/crates/router_env/src/logger/config.rs+++ b/crates/router_env/src/logger/config.rs@@ -141,7 +141,7 @@ impl Config {let config_path = Self::config_path(&environment.to_string(), explicit_config_path);let config = Self::builder(&environment.to_string())?- .add_source(config::File::from(config_path).required(true))+ .add_source(config::File::from(config_path).required(false)).add_source(config::Environment::with_prefix("ROUTER").separator("__")).build()?;