Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .well-known/security.txt #412

Merged
merged 2 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
frcroth marked this conversation as resolved.
Show resolved Hide resolved
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
Loading