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