From 73288f4b58fe72eb4d0c2c0b88c085109339886d Mon Sep 17 00:00:00 2001 From: Delta1925 Date: Sat, 20 May 2023 23:58:11 +0200 Subject: [PATCH] Create .well-known directory at start --- backend/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/main.rs b/backend/src/main.rs index c201749..0d4b886 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -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}; @@ -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 {