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 the session count determining when to cleanup old
6/// checkpoints.
7pub const FM_DB_CHECKPOINT_RETENTION_ENV: &str = "FM_DB_CHECKPOINT_RETENTION";
8
9/// Default number of checkpoints from the current session should be retained on
10/// disk.
11pub const FM_DB_CHECKPOINT_RETENTION_DEFAULT: u64 = 1;
12
13/// Use iroh for networking
14pub const FM_FORCE_IROH_ENV: &str = "FM_FORCE_IROH";