-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrender.yaml
More file actions
43 lines (42 loc) · 1.18 KB
/
render.yaml
File metadata and controls
43 lines (42 loc) · 1.18 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
services:
# Backend API Service
- type: web
name: smartprobono-backend
env: python
region: oregon
plan: free
buildCommand: pip install -r requirements.txt
startCommand: gunicorn --timeout 120 --workers 1 --worker-class sync -b 0.0.0.0:$PORT wsgi:app
healthCheckPath: /api/health
envVars:
- key: FLASK_ENV
value: production
- key: GEMINI_API_KEY
sync: false
- key: DATABASE_URL
value: sqlite:///./smartprobono.db
- key: SQLALCHEMY_DATABASE_URI
value: sqlite:///./smartprobono.db
- key: SECRET_KEY
generateValue: true
- key: JWT_SECRET_KEY
generateValue: true
- key: PYTHONPATH
value: /opt/render/project/src:/opt/render/project/src/backend
- key: PYTHONUNBUFFERED
value: "1"
# Frontend Static Site
- type: web
name: smartprobono-frontend
env: static
region: oregon
plan: free
buildCommand: cd frontend && npm install && npm run build
staticPublishPath: frontend/build
headers:
- path: /*
name: X-Frame-Options
value: SAMEORIGIN
- path: /*
name: X-Content-Type-Options
value: nosniff