-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
100 lines (84 loc) · 3.68 KB
/
Copy path.env.example
File metadata and controls
100 lines (84 loc) · 3.68 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Task Manager API - Environment Configuration Template
# Copy this file to .env and update the values for your environment
# ============================================================================
# JWT & SECURITY SECRETS
# ============================================================================
# Generate secure secrets for production using: rails secret
JWT_SECRET=your_jwt_secret_key_here
SECRET_KEY_BASE=your_rails_secret_key_base_here
RAILS_MASTER_KEY=your_rails_master_key_here
# ============================================================================
# APPLICATION SETTINGS
# ============================================================================
APP_NAME=task_manager_api
APP_HOST=localhost:3000
APP_PORT=3000
APP_PROTOCOL=http
RAILS_ENV=development
RAILS_LOG_LEVEL=debug
# ============================================================================
# DATABASE CONFIGURATION
# ============================================================================
# For development, Rails will use config/database.yml
# For production, you can use DATABASE_URL or individual components:
# Option 1: Full DATABASE_URL (recommended for Heroku, Railway)
# DATABASE_URL=postgresql://username:password@hostname:port/database_name
# Option 2: Individual components
# DB_HOST=localhost
# DB_PORT=5432
# DB_USERNAME=your_db_username
# DB_PASSWORD=your_db_password
# DB_NAME_DEVELOPMENT=task_manager_api_development
# DB_NAME_TEST=task_manager_api_test
# DB_NAME_PRODUCTION=task_manager_api_production
# ============================================================================
# EMAIL SERVICE CONFIGURATION
# ============================================================================
# Configure SMTP for sending emails (password resets, invitations)
# Gmail SMTP (recommended for development)
SMTP_ADDRESS=smtp.gmail.com
SMTP_PORT=587
SMTP_DOMAIN=gmail.com
SMTP_USERNAME=your_gmail@gmail.com
SMTP_PASSWORD=your_gmail_app_password
SMTP_AUTHENTICATION=plain
SMTP_ENABLE_STARTTLS_AUTO=true
# Alternative email services:
# SendGrid: SMTP_ADDRESS=smtp.sendgrid.net, SMTP_USERNAME=apikey
# Mailgun: SMTP_ADDRESS=smtp.mailgun.org
# AWS SES: SMTP_ADDRESS=email-smtp.us-east-1.amazonaws.com
# ============================================================================
# CORS CONFIGURATION
# ============================================================================
# Configure allowed origins for cross-origin requests
CORS_ORIGINS=http://localhost:3000,http://localhost:3001
# ============================================================================
# OPTIONAL: EXTERNAL SERVICES
# ============================================================================
# Redis (for caching and background jobs)
# REDIS_URL=redis://localhost:6379/0
# File Storage (AWS S3, Google Cloud, Azure)
# AWS_ACCESS_KEY_ID=your_aws_access_key
# AWS_SECRET_ACCESS_KEY=your_aws_secret_key
# AWS_REGION=us-east-1
# AWS_S3_BUCKET=your-s3-bucket-name
# Error Tracking (Sentry, Rollbar)
# SENTRY_DSN=https://your-sentry-dsn@sentry.io/project-id
# Performance Monitoring
# NEW_RELIC_LICENSE_KEY=your-license-key
# NEW_RELIC_APP_NAME=Task Manager API
# ============================================================================
# DEVELOPMENT SETTINGS
# ============================================================================
# Show detailed errors in development
RAILS_SERVE_STATIC_FILES=false
RAILS_LOG_TO_STDOUT=false
# ============================================================================
# PRODUCTION SETTINGS (for deployment)
# ============================================================================
# WEB_CONCURRENCY=2
# MAX_THREADS=5
# MIN_THREADS=1
# RAILS_MAX_THREADS=5
# RAILS_SERVE_STATIC_FILES=true
# RAILS_LOG_TO_STDOUT=true