|
|
|
|
@ -1,6 +1,20 @@
@@ -1,6 +1,20 @@
|
|
|
|
|
name: kiddos |
|
|
|
|
region: nyc |
|
|
|
|
|
|
|
|
|
# Ingress rules to route traffic properly |
|
|
|
|
ingress: |
|
|
|
|
rules: |
|
|
|
|
- match: |
|
|
|
|
path: |
|
|
|
|
prefix: /api |
|
|
|
|
component: |
|
|
|
|
name: backend |
|
|
|
|
- match: |
|
|
|
|
path: |
|
|
|
|
prefix: / |
|
|
|
|
component: |
|
|
|
|
name: frontend |
|
|
|
|
|
|
|
|
|
# Backend Service |
|
|
|
|
services: |
|
|
|
|
- name: backend |
|
|
|
|
@ -45,7 +59,7 @@ services:
@@ -45,7 +59,7 @@ services:
|
|
|
|
|
value: ${INITIAL_ADMIN_PASSWORD} |
|
|
|
|
type: SECRET |
|
|
|
|
- key: CORS_ORIGIN |
|
|
|
|
value: ${frontend.PUBLIC_URL} |
|
|
|
|
value: ${APP_URL} |
|
|
|
|
|
|
|
|
|
health_check: |
|
|
|
|
http_path: /api/health |
|
|
|
|
@ -64,10 +78,7 @@ static_sites:
@@ -64,10 +78,7 @@ static_sites:
|
|
|
|
|
|
|
|
|
|
envs: |
|
|
|
|
- key: VITE_API_URL |
|
|
|
|
value: ${backend.PUBLIC_URL}/api |
|
|
|
|
|
|
|
|
|
routes: |
|
|
|
|
- path: / |
|
|
|
|
value: ${APP_URL}/api |
|
|
|
|
|
|
|
|
|
catchall_document: index.html |
|
|
|
|
|
|
|
|
|
|