feature/sso #8

Merged
adebaumann merged 8 commits from feature/sso into master 2026-03-15 19:58:18 +00:00
3 changed files with 10 additions and 3 deletions
Showing only changes of commit b507f961cb - Show all commits

View File

@@ -27,7 +27,7 @@ spec:
mountPath: /data
containers:
- name: web
image: git.baumann.gr/adebaumann/labhelper:0.080
image: git.baumann.gr/adebaumann/labhelper:0.081
imagePullPolicy: Always
ports:
- containerPort: 8000
@@ -137,7 +137,7 @@ spec:
mountPath: /app/data
readinessProbe:
httpGet:
path: /
path: /health/
port: 8000
initialDelaySeconds: 5
periodSeconds: 10
@@ -145,7 +145,7 @@ spec:
failureThreshold: 6
livenessProbe:
httpGet:
path: /
path: /health/
port: 8000
initialDelaySeconds: 20
periodSeconds: 20

View File

@@ -18,6 +18,11 @@ from .forms import (
from .models import Box, BoxType, Facet, Tag, Thing, ThingFile, ThingLink
def health_check(request):
"""Health check endpoint for Kubernetes liveness/readiness probes."""
return HttpResponse('OK', status=200)
def _strip_markdown(text, max_length=100):
"""Convert Markdown to plain text and truncate."""
if not text:

View File

@@ -34,6 +34,7 @@ from boxes.views import (
edit_box_type,
edit_thing,
fixme,
health_check,
index,
resources_list,
search_api,
@@ -43,6 +44,7 @@ from boxes.views import (
urlpatterns = [
path('oidc/', include('mozilla_django_oidc.urls')),
path('login/', TemplateView.as_view(template_name='login.html'), name='login'),
path('health/', health_check, name='health_check'),
path('', index, name='index'),
path('box-management/', box_management, name='box_management'),
path('box-type/add/', add_box_type, name='add_box_type'),