diff options
author | metamuffin <metamuffin@disroot.org> | 2023-08-01 19:56:38 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-08-01 19:56:38 +0200 |
commit | f7992589cf45c699599a7ee5fc4634c9db16ff87 (patch) | |
tree | 973c2e0bc9d50a9e137f999b3c1f231e8471c4be /server/src/config.rs | |
parent | 551e62a6012284823d6b22a9257c3fae07de7fd9 (diff) | |
download | jellything-f7992589cf45c699599a7ee5fc4634c9db16ff87.tar jellything-f7992589cf45c699599a7ee5fc4634c9db16ff87.tar.bz2 jellything-f7992589cf45c699599a7ee5fc4634c9db16ff87.tar.zst |
error format depends on accept header
Diffstat (limited to 'server/src/config.rs')
-rw-r--r-- | server/src/config.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/config.rs b/server/src/config.rs index 0de7e90..0417878 100644 --- a/server/src/config.rs +++ b/server/src/config.rs @@ -4,7 +4,7 @@ Copyright (C) 2023 metamuffin <metamuffin.org> */ use serde::{Deserialize, Serialize}; -use std::{fs::File, path::PathBuf}; +use std::{collections::HashMap, fs::File, path::PathBuf}; #[derive(Debug, Deserialize, Serialize, Default)] pub struct GlobalConfig { @@ -19,6 +19,7 @@ pub struct GlobalConfig { pub admin_password: String, pub cookie_key: String, pub login_expire: i64, + pub remote_credentials: HashMap<String, (String, String)>, } pub fn load_global_config() -> GlobalConfig { |