[FEAT] Add separate frontend/backend Ingress and runtime API_URL configuration
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/manual/woodpecker Pipeline was successful
CI / security (push) Has been cancelled
CD - Build & Deploy / build-and-push (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
CD - Build & Deploy / package-helm (push) Has been cancelled
CD - Build & Deploy / deploy-staging (push) Has been cancelled
CD - Build & Deploy / deploy-production (push) Has been cancelled
CD - Build & Deploy / release (push) Has been cancelled

- Add two Ingress: peikarband.ir (frontend) and api.peikarband.ir (backend)
- Add runtime script to update .web/env.json from API_URL env var
- Remove --backend-only flag to enable both frontend and backend
- Configure API_URL from Helm values instead of build-time args
- Update .dockerignore to include update-env-json.sh script
This commit is contained in:
Ehsan.Asadi
2025-12-30 20:55:11 +03:30
parent 4419dbd0a6
commit 954387a8cf
5 changed files with 147 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ appSecrets:
# Reflex configuration for production
reflex:
apiUrl: "https://peikarband.ir" # Production API URL
apiUrl: "https://api.peikarband.ir" # Production API URL (backend)
podAnnotations:
prometheus.io/scrape: "true"
@@ -72,6 +72,22 @@ ingress:
hosts:
- peikarband.ir
- www.peikarband.ir
# Backend API Ingress (api.peikarband.ir -> port 8000)
apiEnabled: true
apiAnnotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
traefik.ingress.kubernetes.io/router.tls: "true"
apiHosts:
- host: api.peikarband.ir
paths:
- path: /
pathType: Prefix
apiTls:
- secretName: peikarband-api-tls
hosts:
- api.peikarband.ir
postgresql:
enabled: false # Using SQLite for now