-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrender.yaml
More file actions
98 lines (95 loc) · 2.89 KB
/
Copy pathrender.yaml
File metadata and controls
98 lines (95 loc) · 2.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# render.yaml - Configuración para Render
# Este archivo permite desplegar tu backend en Render con un solo click
services:
# API Backend (sin workers para ahorrar memoria)
- type: web
name: subiteya-api
runtime: docker # Cambiado a Docker para instalar FFmpeg
region: oregon # Puedes cambiarlo a: oregon, frankfurt, singapore
plan: free # Opciones: free, starter, standard, pro
dockerfilePath: ./Dockerfile
dockerContext: .
healthCheckPath: /health
envVars:
- key: NODE_ENV
value: production
- key: PORT
value: 3000
- key: DISABLE_WORKERS
value: true # ⚠️ IMPORTANTE: Deshabilitar workers en API porque hay workers dedicados
# Estas las agregarás manualmente en Render Dashboard:
# - DATABASE_URL (tu PostgreSQL/Supabase existente)
# - DIRECT_URL (tu PostgreSQL/Supabase existente)
# - JWT_SECRET
# - ENCRYPTION_KEY
# - REDIS_URL (Upstash Redis)
# - AWS_ACCESS_KEY_ID
# - AWS_SECRET_ACCESS_KEY
# - AWS_REGION
# - AWS_S3_BUCKET
# - TIKTOK_CLIENT_KEY
# - TIKTOK_CLIENT_SECRET
# - TIKTOK_REDIRECT_URI
- key: ALLOWED_ORIGINS
value: https://martinpuli.github.io
autoDeploy: true
# Edit Worker (procesa videos con FFmpeg) - HTTP service receiving Qstash webhooks
- type: web
name: subiteya-edit-worker
runtime: docker
region: oregon
plan: free # Necesitarás plan pago si usas mucho
dockerfilePath: ./Dockerfile
dockerContext: .
dockerCommand: npm run worker:edit -w @subiteya/api
healthCheckPath: /health
envVars:
- key: PORT
value: 3001
- key: NODE_ENV
value: production
- key: QSTASH_CURRENT_SIGNING_KEY
sync: false
- key: QSTASH_NEXT_SIGNING_KEY
sync: false
# Comparte las mismas variables que el API
# - DATABASE_URL
# - DIRECT_URL
# - REDIS_URL
# - AWS_ACCESS_KEY_ID
# - AWS_SECRET_ACCESS_KEY
# - AWS_REGION
# - AWS_S3_BUCKET
# - ENCRYPTION_KEY
autoDeploy: true
# Upload Worker (sube videos a TikTok) - HTTP service receiving Qstash webhooks
- type: web
name: subiteya-upload-worker
runtime: docker
region: oregon
plan: free
dockerfilePath: ./Dockerfile
dockerContext: .
dockerCommand: npm run worker:upload -w @subiteya/api
healthCheckPath: /health
envVars:
- key: PORT
value: 3002
- key: NODE_ENV
value: production
- key: QSTASH_CURRENT_SIGNING_KEY
sync: false
- key: QSTASH_NEXT_SIGNING_KEY
sync: false
# Comparte las mismas variables que el API
# - DATABASE_URL
# - DIRECT_URL
# - REDIS_URL
# - TIKTOK_CLIENT_KEY
# - TIKTOK_CLIENT_SECRET
# - AWS_ACCESS_KEY_ID
# - AWS_SECRET_ACCESS_KEY
# - AWS_REGION
# - AWS_S3_BUCKET
# - ENCRYPTION_KEY
autoDeploy: true