2021-08-14 17:12:18 +00:00
|
|
|
mod options;
|
|
|
|
#[cfg(test)]
|
|
|
|
mod options_test;
|
|
|
|
mod runtime;
|
|
|
|
|
|
|
|
pub use options::{ConfigOpts, ConfigOptsAcme, ConfigOptsBase, ConfigOptsConsul};
|
2021-09-11 14:34:03 +00:00
|
|
|
pub use runtime::{
|
2023-04-04 16:48:52 +00:00
|
|
|
RuntimeConfig, RuntimeConfigAcme, RuntimeConfigConsul, RuntimeConfigFirewall, RuntimeConfigIgd,
|
|
|
|
RuntimeConfigStun,
|
2021-09-11 14:34:03 +00:00
|
|
|
};
|
2021-08-14 17:12:18 +00:00
|
|
|
|
|
|
|
pub const EXPIRATION_TIME: u16 = 300;
|
|
|
|
pub const REFRESH_TIME: u16 = 60;
|
2021-09-11 14:34:03 +00:00
|
|
|
pub const CONSUL_URL: &str = "http://127.0.0.1:8500";
|
2023-04-04 16:46:14 +00:00
|
|
|
pub const STUN_SERVER: &str = "stun.nextcloud.com:443";
|