aboutsummaryrefslogtreecommitdiff
path: root/common/src/config.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-08-01 21:52:53 +0200
committermetamuffin <metamuffin@disroot.org>2023-08-01 21:52:53 +0200
commit6eafafe5297c54aa5cb38790c45ba189b47d755e (patch)
treee79428752295c185aed6713f24b1202d2a0a35b3 /common/src/config.rs
parentff9060ea0987e29e4d468ff7c9fed7cc7109bf2b (diff)
downloadjellything-6eafafe5297c54aa5cb38790c45ba189b47d755e.tar
jellything-6eafafe5297c54aa5cb38790c45ba189b47d755e.tar.bz2
jellything-6eafafe5297c54aa5cb38790c45ba189b47d755e.tar.zst
remote downloa
Diffstat (limited to 'common/src/config.rs')
-rw-r--r--common/src/config.rs24
1 files changed, 24 insertions, 0 deletions
diff --git a/common/src/config.rs b/common/src/config.rs
new file mode 100644
index 0000000..b978a1e
--- /dev/null
+++ b/common/src/config.rs
@@ -0,0 +1,24 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+*/
+
+use serde::{Deserialize, Serialize};
+use std::{collections::HashMap, path::PathBuf};
+
+#[derive(Debug, Deserialize, Serialize, Default)]
+pub struct GlobalConfig {
+ pub brand: String,
+ pub slogan: String,
+
+ pub asset_path: PathBuf,
+ pub database_path: PathBuf,
+ pub library_path: PathBuf,
+
+ pub admin_username: String,
+ pub admin_password: String,
+ pub cookie_key: String,
+ pub login_expire: i64,
+ pub remote_credentials: HashMap<String, (String, String, bool)>,
+}