Skip to content

Commit

Permalink
security changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NvdLaan committed Dec 19, 2024
1 parent 659c35a commit a6e829e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ __pycache__/
app/.env
app/.coverage
private_media/
.local.env
6 changes: 6 additions & 0 deletions app/config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
from django.conf.urls.static import static
from django.contrib import admin
from django.http import JsonResponse
from django.shortcuts import redirect
from django.urls import include, path, re_path
from django.views.generic import View
from drf_spectacular.views import SpectacularAPIView, SpectacularSwaggerView
Expand Down Expand Up @@ -109,6 +110,11 @@ def get(self, request, *args, **kwargs):
),
path("health/", include("health_check.urls")),
path("startup/", is_healthy),
path("startup/", is_healthy),
path(
".well-known/security.txt",
lambda: redirect("https://www.amsterdam.nl/security.txt"),
),
re_path(r"^$", view=MyView.as_view(), name="index"),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

Expand Down

0 comments on commit a6e829e

Please sign in to comment.