From cc768a27e4971a998293b8b4eb7daf7eeeb9b0a8 Mon Sep 17 00:00:00 2001 From: frcroth Date: Wed, 18 Oct 2023 20:41:47 +0200 Subject: [PATCH] Add security.txt --- myhpi/static/security.txt | 3 +++ myhpi/urls.py | 1 + 2 files changed, 4 insertions(+) create mode 100644 myhpi/static/security.txt diff --git a/myhpi/static/security.txt b/myhpi/static/security.txt new file mode 100644 index 00000000..c03f60d8 --- /dev/null +++ b/myhpi/static/security.txt @@ -0,0 +1,3 @@ +Contact: https://github.com/fsr-de/myHPI/security/advisories/new +Expires: 2024-10-18T10:00:00.000Z +Preferred-Languages: en,de diff --git a/myhpi/urls.py b/myhpi/urls.py index 46b32f2c..a3d3208b 100644 --- a/myhpi/urls.py +++ b/myhpi/urls.py @@ -25,6 +25,7 @@ ), path("select2/", include("django_select2.urls")), path("__debug__/", include("debug_toolbar.urls")), + path(".well-known/security.txt", RedirectView.as_view(url="/static/security.txt")), ]