-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
53 lines (40 loc) · 1.47 KB
/
Copy path.env.example
File metadata and controls
53 lines (40 loc) · 1.47 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
# --------------------------------------------------
# Environment
# --------------------------------------------------
# Application environment: development | production | test
NODE_ENV=development
# Express server port
PORT=3000
# --------------------------------------------------
# Database configuration
# --------------------------------------------------
POSTGRES_USER=postgres
POSTGRES_PASSWORD=your_password_here
POSTGRES_DB=auth_flow
POSTGRES_HOST=localhost
POSTGRES_PORT=5434
# Combined database connection URL
DATABASE_URL=postgres://postgres:your_password_here@localhost:5434/auth_flow
# --------------------------------------------------
# Session configuration
# --------------------------------------------------
# Secret key for express-session
SESSION_SECRET=your_session_secret_here
# --------------------------------------------------
# JWT configuration
# --------------------------------------------------
# Secret key for signing JWT tokens
JWT_SECRET=your_jwt_secret_here
# Token expiration settings
JWT_ACCESS_EXPIRES_IN=15m
JWT_REFRESH_EXPIRES_IN=7d
# --------------------------------------------------
# Security & hashing
# --------------------------------------------------
# Number of bcrypt salt rounds (recommended: 10–14)
BCRYPT_SALT_ROUNDS=12
# --------------------------------------------------
# Client configuration (for CORS / Frontend)
# --------------------------------------------------
# Allowed frontend origin
CLIENT_URL=http://localhost:3000