-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
86 lines (71 loc) · 2.57 KB
/
.env.example
File metadata and controls
86 lines (71 loc) · 2.57 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
# Server Configuration
NODE_ENV=development
PORT=3001
SERVER_URL=http://localhost:3001
ENABLE_FILE_LOGGING=true
# Database Configuration
DB_HOST=localhost
DB_USER=swaplink_user
DB_PASSWORD=swaplink_password
DB_NAME=swaplink_mvp
# Note: Port 5434 is for dev (docker-compose.yml), 5433 is for test (docker-compose.test.yml)
DATABASE_URL=postgresql://swaplink_user:swaplink_password@localhost:5434/swaplink_mvp
# Redis Configuration
# Note: Port 6381 is for dev (docker-compose.yml), 6380 is for test (docker-compose.test.yml)
REDIS_URL=redis://localhost:6381
REDIS_PORT=6381
# JWT Configuration
JWT_SECRET=your_jwt_secret_key_here
JWT_ACCESS_EXPIRATION=15m
JWT_REFRESH_SECRET=your_jwt_refresh_secret_key_here
JWT_REFRESH_EXPIRATION=7d
# Globus Bank API Configuration
GLOBUS_SECRET_KEY=your_globus_secret_key
GLOBUS_WEBHOOK_SECRET=your_globus_webhook_secret
GLOBUS_BASE_URL=https://sandbox.globusbank.com/api
GLOBUS_CLIENT_ID=your_globus_client_id
# CORS Configuration
CORS_URLS=http://localhost:3000
# Email Configuration (SMTP)
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USER=your_smtp_user
SMTP_PASSWORD=your_smtp_password
EMAIL_TIMEOUT=10000
FROM_EMAIL=onboarding@resend.dev
# Resend Email Service (Primary - Recommended)
# Get your API key from https://resend.com/api-keys
# Free tier: 100 emails/day, 3,000/month
RESEND_API_KEY=re_your_resend_api_key_here
# SendGrid Email Service (Fallback - Optional)
# Get your API key from https://app.sendgrid.com/settings/api_keys
SENDGRID_API_KEY=SG.your_sendgrid_api_key_here
# Mailtrap Email Service (Staging - Fallback)
# Get your API token from https://mailtrap.io/api-tokens
MAILTRAP_API_TOKEN=your_mailtrap_api_token_here
# Mailtrap SMTP (Deprecated - kept for backward compatibility)
# Note: SMTP may not work on Railway/cloud platforms due to port restrictions
MAILTRAP_HOST=sandbox.smtp.mailtrap.io
MAILTRAP_PORT=2525
MAILTRAP_USER=
MAILTRAP_PASSWORD=
# Twilio SMS Service
# Get your credentials from https://console.twilio.com/
TWILIO_ACCOUNT_SID=your_twilio_account_sid_here
TWILIO_AUTH_TOKEN=your_twilio_auth_token_here
TWILIO_PHONE_NUMBER=+1234567890
# Frontend Configuration
FRONTEND_URL=http://localhost:3000
# Cloudinary Storage Service (Primary)
# Get credentials from https://cloudinary.com/console
CLOUDINARY_CLOUD_NAME=your_cloud_name
CLOUDINARY_API_KEY=your_api_key
CLOUDINARY_API_SECRET=your_api_secret
# Storage Configuration (S3/Cloudflare R2/MinIO)
AWS_ACCESS_KEY_ID=minioadmin
AWS_SECRET_ACCESS_KEY=minioadmin
AWS_REGION=us-east-1
AWS_BUCKET_NAME=swaplink
AWS_ENDPOINT=http://localhost:9000
# System Configuration
SYSTEM_USER_ID=system-wallet-user