-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
242 lines (167 loc) · 6.48 KB
/
env.example
File metadata and controls
242 lines (167 loc) · 6.48 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
# DomMate Environment Configuration
# Copy this file to .env and modify the values according to your setup
# =================================================================
# DATABASE CONFIGURATION
# =================================================================
# SQLite database file path (for Docker containers, use /app/data for persistence)
DATABASE_PATH=/app/data/domains.db
# Database backup directory (ensure this is also in a persistent location)
BACKUP_DIR=/app/data/backups
# =================================================================
# SERVER CONFIGURATION
# =================================================================
# Backend API server port
SERVER_PORT=3001
# Frontend development server port
CLIENT_PORT=4322
# Server host binding (use 0.0.0.0 for Docker)
SERVER_HOST=localhost
# Environment mode: development, production, test
NODE_ENV=development
# =================================================================
# SECURITY CONFIGURATION
# =================================================================
# JWT secret key for token signing (generate a strong random string)
JWT_SECRET=your-super-secret-jwt-key-change-this-in-production
# Session secret for cookie signing (generate a strong random string)
SESSION_SECRET=your-super-secret-session-key-change-this-in-production
# Session timeout in milliseconds (24 hours = 86400000)
SESSION_TIMEOUT=86400000
# Maximum failed login attempts before CAPTCHA is required
MAX_LOGIN_ATTEMPTS=5
# Login attempt window in minutes
LOGIN_ATTEMPT_WINDOW=15
# Default admin password (change immediately after first login)
DEFAULT_ADMIN_PASSWORD=admin123
# =================================================================
# EMAIL CONFIGURATION (SMTP)
# =================================================================
# Enable email notifications (true/false)
EMAIL_ENABLED=false
# SMTP hostname
SMTP_HOST=smtp.gmail.com
# SMTP port (587 for TLS, 465 for SSL, 25 for unencrypted)
SMTP_PORT=587
# Enable TLS/STARTTLS (true/false)
SMTP_SECURE=false
# SMTP authentication username
SMTP_USER=your-email@gmail.com
# SMTP authentication password or app-specific password
SMTP_PASS=your-app-password
# Email sender name
EMAIL_FROM_NAME=DomMate Notification System
# Email sender address
EMAIL_FROM_ADDRESS=noreply@dommate.com
# Default email template language (en/zh)
EMAIL_DEFAULT_LANGUAGE=en
# =================================================================
# DOMAIN CHECKING CONFIGURATION
# =================================================================
# Domain check interval in hours (default: 24 hours)
DOMAIN_CHECK_INTERVAL=24
# WHOIS request timeout in milliseconds
WHOIS_TIMEOUT=10000
# Maximum concurrent domain checks
MAX_CONCURRENT_CHECKS=10
# Domain expiration warning days (comma-separated)
EXPIRATION_WARNING_DAYS=30,15,7,3,1
# =================================================================
# NOTIFICATION CONFIGURATION
# =================================================================
# Enable scheduled notifications (true/false)
NOTIFICATIONS_ENABLED=true
# Notification check interval in minutes
NOTIFICATION_CHECK_INTERVAL=60
# Maximum notifications per day per domain
MAX_NOTIFICATIONS_PER_DAY=5
# Email template directory
EMAIL_TEMPLATE_DIR=./server/templates
# =================================================================
# EXPORT CONFIGURATION
# =================================================================
# Maximum export records limit
MAX_EXPORT_RECORDS=10000
# Export file cleanup interval in hours
EXPORT_CLEANUP_INTERVAL=24
# Export temporary directory
EXPORT_TEMP_DIR=./temp/exports
# =================================================================
# LOGGING CONFIGURATION
# =================================================================
# Log level: error, warn, info, debug
LOG_LEVEL=info
# Log file path
LOG_FILE=./logs/dommate.log
# Enable console logging (true/false)
LOG_CONSOLE=true
# Log rotation: daily, weekly, monthly
LOG_ROTATION=daily
# Maximum log file size in MB
LOG_MAX_SIZE=10
# Maximum number of log files to keep
LOG_MAX_FILES=30
# =================================================================
# RATE LIMITING
# =================================================================
# API rate limit requests per window
RATE_LIMIT_REQUESTS=100
# API rate limit window in minutes
RATE_LIMIT_WINDOW=15
# Enable rate limiting (true/false)
RATE_LIMIT_ENABLED=true
# =================================================================
# CORS CONFIGURATION
# =================================================================
# Allowed origins for CORS (comma-separated URLs)
CORS_ORIGINS=http://localhost:4322,https://dommate.com
# Enable CORS credentials (true/false)
CORS_CREDENTIALS=true
# =================================================================
# BACKUP CONFIGURATION
# =================================================================
# Enable automatic database backups (true/false)
BACKUP_ENABLED=true
# Backup interval in hours
BACKUP_INTERVAL=24
# Maximum number of backup files to keep
BACKUP_MAX_FILES=30
# Backup compression (true/false)
BACKUP_COMPRESSION=true
# =================================================================
# PERFORMANCE CONFIGURATION
# =================================================================
# Maximum request body size in MB
MAX_REQUEST_SIZE=10
# Request timeout in milliseconds
REQUEST_TIMEOUT=30000
# Enable gzip compression (true/false)
ENABLE_COMPRESSION=true
# =================================================================
# DEVELOPMENT CONFIGURATION
# =================================================================
# Enable debug mode (true/false)
DEBUG_MODE=false
# Enable API documentation endpoint (true/false)
ENABLE_API_DOCS=false
# Enable development middleware (true/false)
ENABLE_DEV_MIDDLEWARE=false
# =================================================================
# DOCKER CONFIGURATION
# =================================================================
# Docker container name prefix
DOCKER_CONTAINER_PREFIX=dommate
# Docker network name
DOCKER_NETWORK=dommate-network
# Data volume mount path inside container
DATA_VOLUME_PATH=/app/data
# =================================================================
# MONITORING CONFIGURATION
# =================================================================
# Enable health check endpoint (true/false)
ENABLE_HEALTH_CHECK=true
# Health check endpoint path
HEALTH_CHECK_PATH=/health
# Enable metrics collection (true/false)
ENABLE_METRICS=false
# Metrics endpoint path
METRICS_PATH=/metrics