-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
31 lines (24 loc) · 942 Bytes
/
Copy path.env.example
File metadata and controls
31 lines (24 loc) · 942 Bytes
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
# ── SmartInbox Environment Configuration ───────────────────────────────────────
# Environment (production | development)
ENVIRONMENT=production
DEBUG=False
# Backend Port (Render automatically sets this)
PORT=8000
# Database (Neon / PostgreSQL)
# IMPORTANT: Use the POOLED connection string (usually ending with ?sslmode=require)
DATABASE_URL=postgresql+asyncpg://user:password@host-pooler.region.neon.tech/dbname?sslmode=require
DATABASE_POOL_SIZE=5
DATABASE_MAX_OVERFLOW=10
# Security
# Generate a secure key: openssl rand -hex 32
SECRET_KEY=yoursupersecretproductionkeyhere
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=60
# CORS
# Comma-separated list of allowed origins (e.g., your Amplify URL)
ALLOWED_ORIGINS=https://main.d123456789.amplifyapp.com,http://localhost:5173
# ML Config
MODEL_VERSION=v1
# Logging
LOG_LEVEL=INFO
LOG_FILE=logs/api.log