]>
Commit | Line | Data |
---|---|---|
254b1f22 SR |
1 | //! See the different modules for documentation on their usage. |
2 | //! | |
3 | //! The [backup](backup/index.html) module contains some detailed information | |
4 | //! on the inner workings of the backup server regarding data storage. | |
5 | ||
450105b0 WB |
6 | use std::path::PathBuf; |
7 | ||
8 | use pbs_buildcfg::configdir; | |
9 | use pbs_tools::cert::CertInfo; | |
10 | ||
8f973f81 | 11 | #[macro_use] |
51b499db DM |
12 | pub mod tools; |
13 | ||
7e21da6e | 14 | #[macro_use] |
882594c5 | 15 | pub mod server; |
16b48b81 | 16 | |
986bef16 | 17 | #[macro_use] |
cbdd8c54 | 18 | pub mod backup; |
35cf5daa | 19 | |
a8f268af | 20 | pub mod config; |
678d72df | 21 | |
576e3bf2 | 22 | pub mod api2; |
e8edbbd4 | 23 | |
6c30068e | 24 | pub mod auth_helpers; |
7d817b03 | 25 | |
d97ff8ae | 26 | pub(crate) mod auth; |
6359dc89 | 27 | |
8c15560b | 28 | pub mod tape; |
f2f526b6 WB |
29 | |
30 | pub mod acme; | |
01a08021 WB |
31 | |
32 | pub mod client_helpers; | |
450105b0 | 33 | |
fae4f6c5 DM |
34 | pub mod rrd_cache; |
35 | ||
e705b305 | 36 | pub mod traffic_control_cache; |
de21d4ef | 37 | |
450105b0 WB |
38 | /// Get the server's certificate info (from `proxy.pem`). |
39 | pub fn cert_info() -> Result<CertInfo, anyhow::Error> { | |
40 | CertInfo::from_path(PathBuf::from(configdir!("/proxy.pem"))) | |
41 | } |