Skip to content

Commit

Permalink
Create .well-known directory at start
Browse files Browse the repository at this point in the history
  • Loading branch information
Delta1925 committed May 20, 2023
1 parent e31f1b4 commit 73288f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use actix_web::{
use log::{debug, error, info, trace};
use serde::Deserialize;
use std::fs;
use std::path::Path;
use std::path::{Path, PathBuf};
use tokio::{task, time};
use utils::{init_logger, pending_path, webpage_path};

Expand All @@ -48,6 +48,7 @@ async fn main() -> std::io::Result<()> {
panic!("Could not set up logger!")
};
log_err!(fs::create_dir_all(pending_path()), error)?;
log_err!(fs::create_dir_all(PathBuf::from(ROOT_FOLDER).join(".well-known")), error)?;
task::spawn(async {
let mut metronome = time::interval(time::Duration::from_secs(SETTINGS.cleanup_interval));
loop {
Expand Down

0 comments on commit 73288f4

Please sign in to comment.