From 4153ae68e4972c7e5a4a45ac1c91a9ceee52a7de Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 13 Feb 2023 08:00:31 +0100 Subject: add security.txt and pgp key --- src/wellknown.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/wellknown.rs') diff --git a/src/wellknown.rs b/src/wellknown.rs index 2ec3255..9c9bc1c 100644 --- a/src/wellknown.rs +++ b/src/wellknown.rs @@ -28,3 +28,11 @@ pub fn r_wellknown_matrix_client() -> Cors { pub fn r_wellknown_matrix_server() -> Cors { Cors(json!({"m.server": "matrix.metamuffin.org:443"} )) } + +#[get("/.well-known/security.txt")] +pub fn r_wellknown_security() -> &'static str { + r#"# In can case you found a security vulnerability in my services and want to disclose them privately, use the information below. +Contact: https://metamuffin.org/contact +Encryption: https://metamuffin.org/key.asc + "# +} -- cgit v1.2.3-70-g09d2