feat: wip - configuration design
This commit is contained in:
parent
63ee953912
commit
887e6b64b0
13 changed files with 173 additions and 11 deletions
14
rpxy-acme/src/constants.rs
Normal file
14
rpxy-acme/src/constants.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/// ACME directory url
|
||||
pub const ACME_DIR_URL: &str = "https://acme-v02.api.letsencrypt.org/directory";
|
||||
|
||||
/// ACME registry path that stores account key and certificate
|
||||
pub const ACME_REGISTRY_PATH: &str = "./acme_registry";
|
||||
|
||||
/// ACME accounts directory, subdirectory of ACME_REGISTRY_PATH
|
||||
pub(crate) const ACME_ACCOUNT_SUBDIR: &str = "account";
|
||||
|
||||
/// ACME private key file name
|
||||
pub const ACME_PRIVATE_KEY_FILE_NAME: &str = "private_key.pem";
|
||||
|
||||
/// ACME certificate file name
|
||||
pub const ACME_CERTIFICATE_FILE_NAME: &str = "certificate.pem";
|
||||
Loading…
Add table
Add a link
Reference in a new issue