aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index d5dab7a..c2dccb0 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -21,6 +21,7 @@ mod xml;
#[macro_use] extern crate log;
use {
+ // dotenv::var,
pickledb::PickleDb,
std::sync::{LazyLock, Mutex},
tokio::time::Instant,
@@ -59,6 +60,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
router.set_private_key_file(".locus/locus_private.pem");
router.set_certificate_file(".locus/locus_public.pem");
+ // router.set_private_key(var("LOCUS_PRIVATE_KEY")?.replace("\\n", "\n"));
+ // router.set_certificate(var("LOCUS_CERTIFICATE")?.replace("\\n", "\n"));
router.set_error_handler(|_| {
windmark::response::Response::not_found(ERROR_HANDLER_RESPONSE)
});