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")), ]