-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
41 lines (34 loc) · 1.1 KB
/
Copy path.env.example
File metadata and controls
41 lines (34 loc) · 1.1 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
# Resend API
RESEND_API_KEY=re_xxxxxxxxxxxx
FROM_EMAIL=newsletter@yourdomain.com
FROM_NAME=Your Company
REPLY_TO_EMAIL=hello@yourdomain.com
# API Authentication
API_SECRET=your-secret-key-here
ADMIN_SESSION_TTL_HOURS=12
# Server
PORT=3000
# Production should be the HTTPS origin used in email links, e.g. https://email.example.com
BASE_URL=http://localhost:3000
DATA_DIR=./data
BACKUP_DIR=./backups
# DATABASE_PATH can override the SQLite file directly if needed
# DATABASE_PATH=./data/email_service.db
# Sending
DAILY_SEND_COUNT=5000
BATCH_SIZE=100
# IP Warmup (set the date you start sending, auto-limits volume for 14 days)
SEND_START_DATE=2026-03-25
# Subscription
# Set to "false" to disable double opt-in (subscribers are activated immediately)
DOUBLE_OPTIN=true
SUBSCRIBE_ALLOWED_ORIGINS=http://localhost:3000
SUBSCRIBE_RATE_WINDOW_MINUTES=60
SUBSCRIBE_IP_WINDOW_MAX=20
SUBSCRIBE_EMAIL_WINDOW_MAX=5
CONFIRMATION_RESEND_COOLDOWN_MINUTES=15
# Company Info (CAN-SPAM required)
COMPANY_NAME=Your Company Inc.
COMPANY_ADDRESS=123 Main St, City, State ZIP
# Resend Webhook
RESEND_WEBHOOK_SECRET=whsec_xxxxxxxxxxxx