fedimint_server/envs.rs
1/// The env var for maximum open connections the API can handle
2pub const FM_MAX_CLIENT_CONNECTIONS_ENV: &str = "FM_MAX_CLIENT_CONNECTIONS";
3pub const FM_PEER_ID_SORT_BY_URL_ENV: &str = "FM_PEER_ID_SORT_BY_URL";
4
5/// Environment variable for UI bind address
6pub const FM_UI_BIND_ENV: &str = "FM_UI_BIND";
7
8/// Environment variable for the session count determining when to cleanup old
9/// checkpoints.
10pub const FM_DB_CHECKPOINT_RETENTION_ENV: &str = "FM_DB_CHECKPOINT_RETENTION";
11
12/// Default number of checkpoints from the current session should be retained on
13/// disk.
14pub const FM_DB_CHECKPOINT_RETENTION_DEFAULT: u64 = 1;
15
16/// Use iroh for networking
17pub const FM_FORCE_IROH_ENV: &str = "FM_FORCE_IROH";