adventurelog fix
This commit is contained in:
@@ -126,7 +126,7 @@ spec:
|
||||
value: https://adventures.dooplex.hu
|
||||
- name: CSRF_TRUSTED_ORIGINS
|
||||
value: https://adventures.dooplex.hu,https://adventures.home
|
||||
# Disable user registration (set to True to allow)
|
||||
# Disable user registration (set to False to allow)
|
||||
- name: DISABLE_REGISTRATION
|
||||
value: "True"
|
||||
# Database
|
||||
@@ -351,7 +351,9 @@ spec:
|
||||
app.kubernetes.io/instance: adventurelog
|
||||
app.kubernetes.io/name: frontend
|
||||
---
|
||||
# Main Ingress (Frontend + Backend API)
|
||||
# Main Ingress (Frontend + Backend)
|
||||
# NOTE: /api routes through frontend (SvelteKit handles proxying to backend)
|
||||
# This avoids Django APPEND_SLASH issues with direct ingress routing
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
@@ -377,14 +379,7 @@ spec:
|
||||
- host: adventures.dooplex.hu
|
||||
http:
|
||||
paths:
|
||||
# Backend API routes
|
||||
- path: /api
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: adventurelog-backend
|
||||
port:
|
||||
number: 80
|
||||
# Django admin panel (direct to backend)
|
||||
- path: /admin
|
||||
pathType: Prefix
|
||||
backend:
|
||||
@@ -392,6 +387,7 @@ spec:
|
||||
name: adventurelog-backend
|
||||
port:
|
||||
number: 80
|
||||
# Media files (user uploads)
|
||||
- path: /media
|
||||
pathType: Prefix
|
||||
backend:
|
||||
@@ -399,6 +395,7 @@ spec:
|
||||
name: adventurelog-backend
|
||||
port:
|
||||
number: 80
|
||||
# Static files (Django static assets)
|
||||
- path: /static
|
||||
pathType: Prefix
|
||||
backend:
|
||||
@@ -406,7 +403,7 @@ spec:
|
||||
name: adventurelog-backend
|
||||
port:
|
||||
number: 80
|
||||
# Frontend (default)
|
||||
# Frontend handles everything else including /api proxying
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
@@ -417,13 +414,6 @@ spec:
|
||||
- host: adventures.home
|
||||
http:
|
||||
paths:
|
||||
- path: /api
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: adventurelog-backend
|
||||
port:
|
||||
number: 80
|
||||
- path: /admin
|
||||
pathType: Prefix
|
||||
backend:
|
||||
Reference in New Issue
Block a user