-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
66 lines (58 loc) · 2.39 KB
/
env.example
File metadata and controls
66 lines (58 loc) · 2.39 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
# SendGate Environment Variables
# --- Security ---
# API Key for authentication. If not set, API access is disabled.
SENDGATE_API_KEY=your_secret_api_key_here
# --- App Configuration ---
# App version displayed in health check.
APP_VERSION=0.1.0
# App URL (used for metadata and absolute links). Default: http://localhost:3000
APP_BASE_URL=http://localhost:3000
# Port to run the app on. Default: 3000
PORT=3000
# --- Analysis Limits ---
# Max emails allowed in a single bulk CSV analysis. Default: 100.
# Use with caution: high limits can cause high memory usage on the host.
MAX_BULK_EMAILS=100
# Max file size for CSV upload in MB. Default: 5
MAX_FILE_SIZE_MB=5
# --- Disposable Domains Update ---
# Enable background auto-update of disposable domains. Default: true
DISPOSABLE_AUTO_UPDATE=true
# How often to check for updates in hours. Default: 24
DISPOSABLE_UPDATE_INTERVAL_HOURS=24
# URL to fetch the latest disposable domains list.
# Sourced from: https://github.com/disposable-email-domains/disposable-email-domains
# Supports JSON arrays or plain text files (one domain per line).
DISPOSABLE_SOURCE_URL=https://raw.githubusercontent.com/disposable-email-domains/disposable-email-domains/main/disposable_email_blocklist.conf
# --- DNS Settings ---
# Comma-separated list of DNS servers. Default: 8.8.8.8,1.1.1.1,9.9.9.9
DNS_SERVERS=8.8.8.8,1.1.1.1,9.9.9.9
# DNS timeout in milliseconds. Default: 2500
DNS_TIMEOUT=2500
# DNS retries. Default: 2
DNS_RETRIES=2
# --- Scoring Weights (Must sum to 1.0) ---
# Weight for Authentication (SPF/DMARC). Default: 0.3
WEIGHT_AUTH=0.3
# Weight for Infrastructure (MX/TLS). Default: 0.2
WEIGHT_INFRA=0.2
# Weight for Reputation (Blacklists/Age). Default: 0.2
WEIGHT_REP=0.2
# Weight for Behavioral (Disposable/Typo). Default: 0.3
WEIGHT_BEH=0.3
# --- Scoring Thresholds ---
# Safe (Grade A) score threshold. Default: 90
SCORE_THRESHOLD_SAFE=90
# Risky (Grade B) score threshold. Default: 75
SCORE_THRESHOLD_RISKY=75
# Dangerous (Grade C) score threshold. Default: 60
SCORE_THRESHOLD_DANGEROUS=60
# Critical (Grade D) score threshold. Default: 40
SCORE_THRESHOLD_CRITICAL=40
# Penalty threshold: if any category is below this, score is capped. Default: 50
PENALTY_THRESHOLD=50
# --- Reputation Settings ---
# Domain age threshold in days for "New Domain" warning. Default: 30
DOMAIN_AGE_THRESHOLD_DAYS=30
# RDAP (Domain Age) lookup timeout in milliseconds. Default: 3000
RDAP_TIMEOUT=3000