-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
57 lines (50 loc) · 1.68 KB
/
Copy path.env.example
File metadata and controls
57 lines (50 loc) · 1.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
# ============================================================
# Fanous App — Environment Variables
# ============================================================
# Copy this file to .env and fill in your values:
# cp .env.example .env
# ============================================================
# Application
# ------------------------------------------------
NODE_ENV=development
PORT=3000
LOG_DIR=logging
# Database (PostgreSQL)
# ------------------------------------------------
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_USER=postgres
DATABASE_PASSWORD=your_db_password_here
DATABASE_NAME=fanous
# JWT Authentication
# ------------------------------------------------
# Generate strong secrets: openssl rand -hex 64
ACCESS_TOKEN_SECRET=your_access_token_secret_here
REFRESH_TOKEN_SECRET=your_refresh_token_secret_here
ACCESS_TOKEN_EXPIRATION=15m
REFRESH_TOKEN_EXPIRATION=7d
LOGOUT_TOKEN_SECRET=your_logout_token_secret_here
LOGOUT_TOKEN_EXPIRATION=7d
COOKIE_EXPIRATION=604800
JWT_ISSUER=fanous-app
# Redis
# ------------------------------------------------
REDIS_HOST=localhost
REDIS_PORT=6379
# Email (Nodemailer SMTP)
# ------------------------------------------------
EMAIL_FROM_NAME=Fanous App
EMAIL_FROM=noreply@fanous.app
EMAIL_USER=your_smtp_username
EMAIL_PASSWORD=your_smtp_password
EMAIL_PORT=587
EMAIL_HOST=smtp.example.com
# AWS S3 (File Storage)
# ------------------------------------------------
AWS_REGION=us-east-1
AWS_ACCESS_KEY_ID=your_aws_access_key_id
AWS_SECRET_ACCESS_KEY=your_aws_secret_access_key
S3_BUCKET_NAME=fanous-bucket
# OpenAI (Optional — for AI-powered features)
# ------------------------------------------------
OPENAI_API_KEY=your_openai_api_key_here