upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

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, 6 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index ceff44d..037deb2 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -33,6 +33,12 @@ pub struct StorageConfig {
33 pub mirror_dir: PathBuf, 33 pub mirror_dir: PathBuf,
34 #[serde(default = "default_database")] 34 #[serde(default = "default_database")]
35 pub database: PathBuf, 35 pub database: PathBuf,
36 #[serde(default = "default_health_port")]
37 pub health_port: u16,
38}
39
40fn default_health_port() -> u16 {
41 7335
36} 42}
37 43
38fn default_mirror_dir() -> PathBuf { 44fn default_mirror_dir() -> PathBuf {