Skip to content

Commit

Permalink
Add .well-known/security.txt (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
frcroth authored Oct 19, 2023
1 parent 51bfdef commit e568eca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions myhpi/static/security.txt
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions myhpi/urls.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os

from django.conf import settings
from django.conf.urls.i18n import i18n_patterns
from django.contrib import admin
Expand Down Expand Up @@ -25,6 +27,10 @@
),
path("select2/", include("django_select2.urls")),
path("__debug__/", include("debug_toolbar.urls")),
path(
".well-known/security.txt",
RedirectView.as_view(url=os.path.join(settings.STATIC_URL, "security.txt")),
),
]


Expand Down

0 comments on commit e568eca

Please sign in to comment.