diff --git a/.well-known/security.txt b/.well-known/security.txt new file mode 100644 index 0000000..5578bbb --- /dev/null +++ b/.well-known/security.txt @@ -0,0 +1,4 @@ +Contact: mailto:security@ebadfd.tech +Expires: 2026-12-12T06:42:00.000Z +Preferred-Languages: en +Canonical: https://ebadfd.tech/.well-known/security.txt diff --git a/src/lib.rs b/src/lib.rs index cd23e5d..3b453b8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -72,6 +72,7 @@ pub async fn run_server() -> Result<()> { .compress_when(DefaultPredicate::new()); let files = ServeDir::new("static"); + let well_known_files = ServeDir::new(".well-known"); let middleware = tower::ServiceBuilder::new() .layer(Extension(state.clone())) @@ -108,6 +109,7 @@ pub async fn run_server() -> Result<()> { ) .route("/rr", get(handlers::rr_handler)) .nest_service("/static", files) + .nest_service("/.well-known", well_known_files) .fallback(handlers::not_found) .layer(comression_layer) .layer(middleware);