#[derive(Debug, Clone)] pub struct Config { pub bind_addr: String, pub issuer_url: String, } 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 = format!("http://{}", bind_addr); Self { bind_addr, issuer_url, } } }