summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/config.rs b/src/config.rs
index 3976d71..a13658b 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -2,21 +2,16 @@
pub struct Config {
pub bind_addr: String,
pub issuer_url: String,
- pub jwt_secret: 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);
- let jwt_secret = std::env::var("JWT_SECRET").unwrap_or_else(|_| {
- "your-256-bit-secret-key-here-make-it-very-long-and-secure".to_string()
- });
Self {
bind_addr,
issuer_url,
- jwt_secret,
}
}
-} \ No newline at end of file
+}