-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
87 lines (64 loc) · 2.65 KB
/
.env.example
File metadata and controls
87 lines (64 loc) · 2.65 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
# TrustCheck Configuration
# Copy this file to .env and adjust values as needed
# =============================================================================
# DATABASE
# =============================================================================
# PostgreSQL connection string
DATABASE_URL=postgresql+asyncpg://postgres:password@localhost:5432/trustcheck
# Connection pool settings
DB_POOL_SIZE=10
DB_POOL_MAX_OVERFLOW=20
DB_POOL_TIMEOUT=30
DB_ECHO=false
# =============================================================================
# APPLICATION
# =============================================================================
# Environment: development, staging, production
ENVIRONMENT=development
# Debug mode (enables auto-reload)
DEBUG=false
# Logging level: DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_LEVEL=INFO
# Server binding
HOST=0.0.0.0
PORT=8000
# =============================================================================
# SCREENING
# =============================================================================
# Minimum score (0.0-1.0) for a match to be returned
DEFAULT_MATCH_THRESHOLD=0.80
# Maximum results per screening request
MAX_SCREENING_RESULTS=100
# Maximum names in a batch screening request
BATCH_SCREENING_LIMIT=10000
# PostgreSQL trigram similarity threshold for candidate generation
TRIGRAM_SIMILARITY_THRESHOLD=0.3
# =============================================================================
# SCRAPING INTERVALS
# =============================================================================
# How often to check each source for updates (in hours)
OFAC_INTERVAL_HOURS=6
UN_INTERVAL_HOURS=24
EU_INTERVAL_HOURS=24
UK_INTERVAL_HOURS=24
# HTTP request timeout (seconds)
SCRAPING_TIMEOUT=120
# Retry attempts for failed downloads
SCRAPING_MAX_RETRIES=3
# Batch size for database inserts
SCRAPING_BATCH_SIZE=500
# =============================================================================
# DATA SOURCE URLs
# =============================================================================
# Override default URLs if needed (usually not necessary)
# OFAC_SDN_URL=https://www.treasury.gov/ofac/downloads/sdn.xml
# UN_CONSOLIDATED_URL=https://scsanctions.un.org/resources/xml/en/consolidated.xml
# EU_SANCTIONS_URL=https://webgate.ec.europa.eu/fsd/fsf/public/files/xmlFullSanctionsList_1_1/content?token=dG9rZW4tMjAxNw
# UK_SANCTIONS_URL=https://assets.publishing.service.gov.uk/media/...
# =============================================================================
# CACHE
# =============================================================================
# Cache time-to-live (seconds)
CACHE_TTL_SECONDS=300
# Maximum cached items
CACHE_MAX_SIZE=10000