-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
120 lines (104 loc) · 3.16 KB
/
.env.example
File metadata and controls
120 lines (104 loc) · 3.16 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# ===========================================
# Trove Environment Configuration
# ===========================================
# Copy this file to .env and update values
# ===========================================
# Application
# ===========================================
NODE_ENV=development
APP_NAME=Trove
APP_URL=http://localhost:3000
API_URL=http://localhost:4000
API_PORT=4000
WEB_PORT=3000
# ===========================================
# Database (PostgreSQL)
# ===========================================
DATABASE_URL="postgresql://trove:trove_secret@localhost:5432/trove_dev?schema=public"
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_USER=trove
DATABASE_PASSWORD=trove_secret
DATABASE_NAME=trove_dev
# ===========================================
# Redis
# ===========================================
REDIS_URL=redis://localhost:6379
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
# ===========================================
# Elasticsearch
# ===========================================
ELASTICSEARCH_URL=http://localhost:9200
ELASTICSEARCH_HOST=localhost
ELASTICSEARCH_PORT=9200
ELASTICSEARCH_USERNAME=
ELASTICSEARCH_PASSWORD=
# ===========================================
# Authentication
# ===========================================
# JWT
JWT_SECRET=your-super-secret-jwt-key-change-in-production
JWT_ACCESS_TOKEN_EXPIRATION=15m
JWT_REFRESH_TOKEN_EXPIRATION=7d
# Session
SESSION_SECRET=your-session-secret-change-in-production
# ===========================================
# OAuth - GitHub
# ===========================================
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_CALLBACK_URL=http://localhost:4000/api/v1/auth/github/callback
# ===========================================
# OAuth - Google
# ===========================================
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_CALLBACK_URL=http://localhost:4000/api/v1/auth/google/callback
# ===========================================
# Email (SMTP)
# ===========================================
SMTP_HOST=localhost
SMTP_PORT=1025
SMTP_USER=
SMTP_PASSWORD=
SMTP_FROM_NAME=Trove
# ===========================================
# File Storage
# ===========================================
# Local, S3, or Cloudinary
STORAGE_DRIVER=local
STORAGE_LOCAL_PATH=./uploads
# AWS S3 (if STORAGE_DRIVER=s3)
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_REGION=us-east-1
AWS_S3_BUCKET=
# Cloudinary (if STORAGE_DRIVER=cloudinary)
CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=
# ===========================================
# Rate Limiting
# ===========================================
RATE_LIMIT_TTL=60
RATE_LIMIT_MAX=100
# ===========================================
# Logging
# ===========================================
LOG_LEVEL=debug
LOG_FORMAT=pretty
# ===========================================
# Security
# ===========================================
CORS_ORIGINS=http://localhost:3000,http://localhost:4000
COOKIE_DOMAIN=localhost
COOKIE_SECURE=false
# ===========================================
# Feature Flags
# ===========================================
FEATURE_REGISTRATION_ENABLED=true
FEATURE_OAUTH_ENABLED=true
FEATURE_EMAIL_VERIFICATION_REQUIRED=false