summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/config.rs b/src/config.rs
index 266f669..e496581 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -13,8 +13,10 @@ pub struct Config {
impl Config {
pub fn from_env() -> Self {
let bind_addr = std::env::var("BIND_ADDR").unwrap_or_else(|_| "127.0.0.1:7878".to_string());
- let issuer_url = std::env::var("ISSUER_URL").unwrap_or_else(|_| format!("http://{}", bind_addr));
- let database_path = std::env::var("DATABASE_PATH").unwrap_or_else(|_| "oauth.db".to_string());
+ let issuer_url =
+ std::env::var("ISSUER_URL").unwrap_or_else(|_| format!("http://{}", bind_addr));
+ let database_path =
+ std::env::var("DATABASE_PATH").unwrap_or_else(|_| "oauth.db".to_string());
let rate_limit_requests_per_minute = std::env::var("RATE_LIMIT_RPM")
.unwrap_or_else(|_| "60".to_string())
.parse()