-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrailway.env.example
More file actions
68 lines (53 loc) · 2.08 KB
/
railway.env.example
File metadata and controls
68 lines (53 loc) · 2.08 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
# Railway Environment Variables
# These variables are automatically set by Railway or should be configured in Railway dashboard
# ==========================================
# AUTOMATICALLY SET BY RAILWAY (Don't set these)
# ==========================================
# PORT - Railway automatically assigns the port
# RAILWAY_ENVIRONMENT - Automatically set (production/staging)
# RAILWAY_PROJECT_ID - Your Railway project ID
# RAILWAY_SERVICE_ID - Your Railway service ID
# ==========================================
# REQUIRED VARIABLES (Set in Railway dashboard)
# ==========================================
# Node Environment
NODE_ENV=production
# CORS Origins (Set to your Railway domain)
# Format: https://your-app.up.railway.app
# For multiple origins, separate with commas
CORS_ORIGIN=https://${{RAILWAY_PUBLIC_DOMAIN}}
# Frontend URL (usually same as your Railway domain)
FRONTEND_URL=https://${{RAILWAY_PUBLIC_DOMAIN}}
# ==========================================
# OPTIONAL VARIABLES
# ==========================================
# JWT Secret (only if using complex auth)
# JWT_SECRET=your-super-secret-jwt-key-minimum-32-characters
# JWT Expiration
# JWT_EXPIRES_IN=7d
# Rate Limiting
# RATE_LIMIT_WINDOW_MS=900000
# RATE_LIMIT_MAX_REQUESTS=100
# Stock Data
# DEFAULT_STOCK_LIST=nifty50
# DEFAULT_STOCK_COUNT=50
# Logging Level
# LOG_LEVEL=info
# Security
# HELMET_ENABLED=true
# Performance
# COMPRESSION_ENABLED=true
# CACHE_TTL=30000
# ==========================================
# DATABASE (Optional - Not needed for basic deployment)
# ==========================================
# MONGODB_URI=mongodb://user:password@host:port/database
# REDIS_URL=redis://user:password@host:port
# ==========================================
# RAILWAY DEPLOYMENT NOTES
# ==========================================
# 1. Railway automatically injects PORT - never hardcode it
# 2. Use ${{RAILWAY_PUBLIC_DOMAIN}} for dynamic domain reference
# 3. The app uses in-memory storage by default (no database required)
# 4. For persistent data, add MongoDB or PostgreSQL from Railway marketplace
# 5. Health check endpoint: /health