-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.prod.example
More file actions
34 lines (25 loc) · 1.12 KB
/
.env.prod.example
File metadata and controls
34 lines (25 loc) · 1.12 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
# Production Environment Variables for Railway Deployment
# Copy this to .env.prod and configure your values
# Database (automatically provided by Railway PostgreSQL service)
# DATABASE_URL=postgresql://user:password@host:port/database
# Application Environment
NODE_ENV=production
PORT=3000
# Better Auth Configuration (REQUIRED)
BETTER_AUTH_SECRET=your-super-secret-key-min-32-characters-long
BETTER_AUTH_URL=https://your-api-domain.railway.app
# Better Auth Trusted Origins (REQUIRED for independent deployments)
# Comma-separated list of frontend domains allowed to authenticate
BETTER_AUTH_TRUSTED_ORIGINS=https://your-frontend-domain.com,https://www.your-frontend-domain.com
# CORS Origins (REQUIRED for independent deployments)
# Must match your frontend domain(s)
CORS_ORIGINS=https://your-frontend-domain.com,https://www.your-frontend-domain.com
# Frontend Environment Variables (set these in frontend deployment)
# VITE_API_URL=https://your-api-domain.railway.app
# Optional: Logging
LOG_LEVEL=info
# Optional: Session Configuration
SESSION_MAX_AGE=7200000
# Optional: Rate Limiting
RATE_LIMIT_MAX=100
RATE_LIMIT_WINDOW=900000