-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
100 lines (82 loc) · 2.67 KB
/
.env.example
File metadata and controls
100 lines (82 loc) · 2.67 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
# Production Environment Configuration Example
# Copy this file to .env and fill in your actual values
# DO NOT commit the actual .env file to version control
# Environment
ENVIRONMENT=production
# HaloPSA Configuration
HALOPSA_TENANT_URL=https://yourtenant.halopsa.com
HALOPSA_CLIENT_ID=your_client_id_here
HALOPSA_CLIENT_SECRET=your_client_secret_here
HALOPSA_REDIRECT_URI=https://your-integration.com/auth/callback
HALOPSA_WEBHOOK_SECRET=your_webhook_secret_here
# HaloPSA Custom Field IDs
# Get these from your HaloPSA instance under Configuration > Fields
HALOPSA_FIELD_APOLLO_ID=100
HALOPSA_FIELD_ZOOMINFO_ID=101
HALOPSA_FIELD_DATA_SOURCE=102
HALOPSA_FIELD_ENRICHMENT_DATE=103
HALOPSA_FIELD_QUALITY_SCORE=104
HALOPSA_FIELD_CONFIDENCE_SCORE=105
# B2B Data Source API Keys
APOLLO_API_KEY=your_apollo_api_key_here
APOLLO_WEBHOOK_SECRET=your_apollo_webhook_secret
ZOOMINFO_USERNAME=your_zoominfo_username
ZOOMINFO_PASSWORD=your_zoominfo_password
ZOOMINFO_WEBHOOK_SECRET=your_zoominfo_webhook_secret
HUNTER_API_KEY=your_hunter_api_key_here
HUNTER_WEBHOOK_SECRET=your_hunter_webhook_secret
UPLEAD_API_KEY=your_uplead_api_key_here
LUSHA_API_KEY=your_lusha_api_key_here
# Halo Integrator Configuration
HALO_INTEGRATOR_ENABLED=true
HALO_INTEGRATOR_POLL_INTERVAL=15
HALO_INTEGRATOR_API_ENDPOINT=https://your-integration-api.com/sync
HALO_INTEGRATOR_AUTH_TOKEN=your_api_auth_token
HALO_INTEGRATOR_TIMEOUT=30
HALO_INTEGRATOR_RETRIES=3
# Webhook Configuration
WEBHOOKS_ENABLED=true
WEBHOOKS_BASE_URL=https://your-integration.com
WEBHOOKS_AUTH_TOKEN=your_webhook_auth_token
WEBHOOKS_RATE_LIMIT=100
# Data Quality Settings
MIN_CONFIDENCE_SCORE=70
VERIFY_EMAILS=true
DEDUPLICATE_CONTACTS=true
SIMILARITY_THRESHOLD=0.8
# Error Handling
MAX_RETRIES=3
RETRY_DELAY_SECONDS=60
DEAD_LETTER_QUEUE=true
ALERT_EMAIL=admin@yourcompany.com
ALERT_WEBHOOK=https://your-monitoring.com/alerts
# Logging
LOG_LEVEL=info
LOG_FILE_PATH=./logs/integration.log
LOG_MAX_FILE_SIZE=10MB
LOG_MAX_FILES=5
LOG_JSON_FORMAT=true
# Monitoring
HEALTH_CHECK_INTERVAL=300
METRICS_ENABLED=true
METRICS_PORT=9090
PROMETHEUS_ENDPOINT=/metrics
# Security
ENCRYPTION_KEY=your_32_character_encryption_key_here
CORS_ORIGINS=https://yourdomain.com,https://your-admin.com
RATE_LIMIT_WINDOW=900
# API Rate Limits
APOLLO_RATE_LIMIT_PER_MINUTE=100
ZOOMINFO_RATE_LIMIT_PER_HOUR=1000
HUNTER_RATE_LIMIT_PER_SECOND=10
UPLEAD_RATE_LIMIT_PER_MINUTE=10
LUSHA_RATE_LIMIT_PER_MINUTE=120
# Database (if using custom middleware with persistence)
DATABASE_URL=postgresql://username:password@localhost:5432/halopsa_integration
REDIS_URL=redis://localhost:6379/0
# Server Configuration
PORT=3000
HOST=0.0.0.0
HTTPS_ENABLED=true
SSL_CERT_PATH=./ssl/cert.pem
SSL_KEY_PATH=./ssl/key.pem