diff options
author | Quentin <quentin@dufour.io> | 2021-08-19 08:32:53 +0200 |
---|---|---|
committer | Quentin <quentin@dufour.io> | 2021-08-19 08:32:53 +0200 |
commit | fa25c54e47decf9f323ba0c614f4d9de106626d5 (patch) | |
tree | 2f4524b06b95d8522166732feff59e7246fa86e1 /src/config/mod.rs | |
parent | 8b57fb2680673c4ee5a425b262e190fcef724a25 (diff) | |
parent | 0f114f21344ddb59f50fed68540c54c41300cf51 (diff) | |
download | diplonat-fa25c54e47decf9f323ba0c614f4d9de106626d5.tar.gz diplonat-fa25c54e47decf9f323ba0c614f4d9de106626d5.zip |
Merge pull request 'Environment parsing done with Serde Envy' (#5) from adrien/diplonat:feature/config-handling into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/diplonat/pulls/5
Diffstat (limited to 'src/config/mod.rs')
-rw-r--r-- | src/config/mod.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs new file mode 100644 index 0000000..14926bd --- /dev/null +++ b/src/config/mod.rs @@ -0,0 +1,11 @@ +mod options; +#[cfg(test)] +mod options_test; +mod runtime; + +pub use options::{ConfigOpts, ConfigOptsAcme, ConfigOptsBase, ConfigOptsConsul}; +pub use runtime::{RuntimeConfig, RuntimeConfigAcme, RuntimeConfigConsul, RuntimeConfigFirewall, RuntimeConfigIgd}; + +pub const EXPIRATION_TIME: u16 = 300; +pub const REFRESH_TIME: u16 = 60; +pub const CONSUL_URL: &str = "http://127.0.0.1:8500";
\ No newline at end of file |