updated for deployment

This commit is contained in:
rarebuffalo
2026-04-20 11:05:59 +05:30
parent 8330060e86
commit 5f214c507d
4 changed files with 132 additions and 6 deletions

22
render.yaml Normal file
View File

@@ -0,0 +1,22 @@
services:
- type: web
name: securelens-api
env: python
buildCommand: "pip install -r requirements.txt"
startCommand: "uvicorn main:app --host 0.0.0.0 --port $PORT"
envVars:
- key: DATABASE_URL
fromDatabase:
name: securelens-db
property: connectionString
- key: CORS_ORIGINS
value: "*"
- key: JWT_SECRET
generateValue: true
- key: OPENAI_API_KEY
sync: false
databases:
- name: securelens-db
databaseName: securelens
user: securelens