All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 3m13s
- Backend/Web Dockerfiles with multi-stage builds - K8S deployments, services, and ingress for both domains - Gitea Actions workflow: build → push to SWR → deploy to K3s - Health check endpoint (/healthz/) - CORS env var support for production domains - Nginx reverse proxy for frontend → backend API Domains: - video-huoshan-api.airlabs.art (backend) - video-huoshan-web.airlabs.art (frontend)
16 lines
373 B
Python
16 lines
373 B
Python
from django.contrib import admin
|
|
from django.urls import path, include
|
|
from django.http import JsonResponse
|
|
|
|
|
|
def healthz(request):
|
|
return JsonResponse({'status': 'ok'})
|
|
|
|
|
|
urlpatterns = [
|
|
path('healthz/', healthz),
|
|
path('admin/', admin.site.urls),
|
|
path('api/v1/auth/', include('apps.accounts.urls')),
|
|
path('api/v1/', include('apps.generation.urls')),
|
|
]
|