diff options
| author | Fuwn <[email protected]> | 2024-06-24 04:36:20 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-06-24 04:36:20 -0700 |
| commit | a7d1406683e29358a269f0c10df572339eebcf5d (patch) | |
| tree | e3d4e6f672ad38180cb031859fab9e343fbc319c /src | |
| parent | feat(technology): maths (diff) | |
| download | locus-a7d1406683e29358a269f0c10df572339eebcf5d.tar.xz locus-a7d1406683e29358a269f0c10df572339eebcf5d.zip | |
chore: add fly.io configuration
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 3 |
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) }); |