From 57f6dabb8fbab240d1c8aad45343aa41f866e0a1 Mon Sep 17 00:00:00 2001 From: Nino Date: Thu, 19 Dec 2024 10:20:38 +0100 Subject: [PATCH] security changes --- app/web/urls.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/web/urls.py b/app/web/urls.py index 39cc8f7f..8cf1ad5b 100755 --- a/app/web/urls.py +++ b/app/web/urls.py @@ -1,4 +1,5 @@ from django.conf import settings +from django.shortcuts import redirect from django.urls import path, re_path, include as path_include from django.conf.urls import include from django.conf.urls.static import static @@ -38,6 +39,7 @@ path('api/', include(router.urls)), path('admin/', admin.site.urls), + path(".well-known/security.txt", lambda: redirect("https://www.amsterdam.nl/security.txt")), ] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)