-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
86 lines (70 loc) · 2.34 KB
/
.env.example
File metadata and controls
86 lines (70 loc) · 2.34 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
# ==============================================
# Docker Environment Configuration Example
# ==============================================
# Copy this file to .env and adjust values for your environment
# ==============================================
# Database Configuration
# ==============================================
DB_HOST=database
DB_PORT=5432
DB_NAME=issuetracker
DB_USER=postgres
DB_PASSWORD=foobert99
# Alternative: Use connection string
# DATABASE_URL=postgres://postgres:foobert99@database:5432/issuetracker
# ==============================================
# Backend Configuration
# ==============================================
NODE_ENV=production
PORT=3000
# ==============================================
# Authentication & Security
# ==============================================
# IMPORTANT: Change this to a secure random string in production!
JWT_SECRET=your-super-secret-jwt-key-change-in-production
JWT_EXPIRES=1h
# Password hashing rounds (higher = more secure but slower)
BCRYPT_ROUNDS=12
# ==============================================
# Frontend Configuration
# ==============================================
# Backend API URL for frontend
VITE_API_URL=http://localhost:3000
# ==============================================
# Docker Configuration
# ==============================================
# Project name for Docker Compose
COMPOSE_PROJECT_NAME=nodejs-server
# Restart policy
RESTART_POLICY=unless-stopped
# ==============================================
# Production Overrides
# ==============================================
# Uncomment and adjust for production deployment
# HTTPS Configuration
# SSL_CERT=/path/to/ssl/cert.pem
# SSL_KEY=/path/to/ssl/key.pem
# Security
# HELMET_ENABLED=true
# RATE_LIMIT_ENABLED=true
# RATE_LIMIT_MAX=100
# Logging
# LOG_LEVEL=info
# LOG_FORMAT=json
# ==============================================
# Optional: External Services
# ==============================================
# Redis for caching/sessions
# REDIS_URL=redis://redis:6379
# Email service
# SMTP_HOST=smtp.gmail.com
# SMTP_PORT=587
# SMTP_USER=your-email@gmail.com
# SMTP_PASS=your-app-password
# ==============================================
# Development Overrides
# ==============================================
# Uncomment for development environment
# NODE_ENV=development
# JWT_SECRET=dev-secret-key
# DB_PASSWORD=dev-password