-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
55 lines (48 loc) · 2.63 KB
/
.env.example
File metadata and controls
55 lines (48 loc) · 2.63 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
# =============================================================================
# Fastify TypeScript Starter - Environment Configuration
# =============================================================================
# Copy this file to .env and customize the values for your environment.
# Never commit .env to version control - it may contain secrets!
#
# All variables have sensible defaults defined in src/config/environment.ts
# Only add variables here that you need to override.
# =============================================================================
# -----------------------------------------------------------------------------
# Application Environment
# -----------------------------------------------------------------------------
# Options: development, production, test
# - development: Enables detailed error messages, relaxed CORS
# - production: Enables security features, restricted CORS
# - test: Used when running test suite
NODE_ENV=development
# -----------------------------------------------------------------------------
# Server Configuration
# -----------------------------------------------------------------------------
# Port the server listens on (1-65535)
PORT=3000
# Milliseconds to wait for graceful shutdown before forcing exit
# During shutdown, the server stops accepting new connections and waits
# for existing requests to complete before exiting.
FASTIFY_CLOSE_GRACE_DELAY=500
# -----------------------------------------------------------------------------
# CORS Configuration (Production Only)
# -----------------------------------------------------------------------------
# Comma-separated list of allowed origins for Cross-Origin requests.
# Only used in production - development allows all origins.
# Example: https://app.example.com,https://admin.example.com
# CORS_ORIGINS=https://your-frontend-domain.com
# -----------------------------------------------------------------------------
# Logging
# -----------------------------------------------------------------------------
# Log level for Pino logger
# Options: fatal, error, warn, info, debug, trace
LOG_LEVEL=info
# -----------------------------------------------------------------------------
# Database (Add your database configuration here)
# -----------------------------------------------------------------------------
# DATABASE_URL=postgresql://user:password@localhost:5432/dbname
# -----------------------------------------------------------------------------
# Authentication (Add your auth configuration here)
# -----------------------------------------------------------------------------
# JWT_SECRET=your-super-secret-key-change-in-production
# JWT_EXPIRES_IN=1d