-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
128 lines (90 loc) · 4.24 KB
/
env.example
File metadata and controls
128 lines (90 loc) · 4.24 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
# Dep-Hallucinator Environment Configuration
# Copy this file to .env and configure for your environment
# ============================================================================
# Registry API Credentials (Optional but recommended for higher rate limits)
# ============================================================================
# PyPI API Token (for private registries or higher rate limits)
# Get from: https://pypi.org/manage/account/token/
# PYPI_API_TOKEN=pypi-AgEIcHlwaS5vcmcCJDUwZjA...
# npm Auth Token (for private registries)
# Get from: npm whoami --registry=https://registry.npmjs.org/
# NPM_AUTH_TOKEN=npm_1234567890abcdef...
# Generic registry token (fallback)
# REGISTRY_TOKEN=your_generic_token_here
# ============================================================================
# Performance and Rate Limiting
# ============================================================================
# Rate limit for API requests (requests per second)
DEP_HALLUCINATOR_RATE_LIMIT=10.0
# Maximum concurrent registry checks
DEP_HALLUCINATOR_MAX_CONCURRENT=20
# Request timeout in seconds
DEP_HALLUCINATOR_TIMEOUT=30
# ============================================================================
# Security Configuration
# ============================================================================
# Maximum file size to process (MB)
DEP_HALLUCINATOR_MAX_FILE_SIZE_MB=10
# Enable signature verification (experimental)
DEP_HALLUCINATOR_VERIFY_SIGNATURES=false
# Enable verbose security logging
DEP_HALLUCINATOR_SECURITY_VERBOSE=false
# ============================================================================
# Logging Configuration
# ============================================================================
# Log level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
DEP_HALLUCINATOR_LOG_LEVEL=WARNING
# Enable file logging
DEP_HALLUCINATOR_ENABLE_FILE_LOGGING=false
# Log file path (if file logging is enabled)
# DEP_HALLUCINATOR_LOG_FILE=/var/log/dep-hallucinator.log
# ============================================================================
# Cache Configuration
# ============================================================================
# Enable caching
DEP_HALLUCINATOR_ENABLE_CACHE=true
# Cache TTL in seconds
DEP_HALLUCINATOR_CACHE_TTL=3600
# Maximum cache entries
DEP_HALLUCINATOR_MAX_CACHE_SIZE=1000
# ============================================================================
# Machine Learning Configuration
# ============================================================================
# AI probability threshold for flagging packages
DEP_HALLUCINATOR_AI_THRESHOLD=0.7
# High confidence threshold
DEP_HALLUCINATOR_HIGH_CONFIDENCE=0.85
# ============================================================================
# Custom Registry URLs (Advanced)
# ============================================================================
# Custom PyPI registry URL
# DEP_HALLUCINATOR_PYPI_URL=https://pypi.org/pypi
# Custom npm registry URL
# DEP_HALLUCINATOR_NPM_URL=https://registry.npmjs.org
# ============================================================================
# CI/CD Integration
# ============================================================================
# Fail on HIGH risk packages (in addition to CRITICAL)
DEP_HALLUCINATOR_FAIL_ON_HIGH=false
# Enable quiet mode (minimal output)
DEP_HALLUCINATOR_QUIET=false
# Default output format (console, json)
DEP_HALLUCINATOR_OUTPUT_FORMAT=console
# ============================================================================
# Production Deployment
# ============================================================================
# Memory limit in MB (for container deployments)
# DEP_HALLUCINATOR_MEMORY_LIMIT=512
# Enable compression for responses
DEP_HALLUCINATOR_ENABLE_COMPRESSION=true
# Health check endpoint port (if running as service)
# DEP_HALLUCINATOR_HEALTH_PORT=8080
# ============================================================================
# Development/Debug Settings (Not for production)
# ============================================================================
# Enable debug mode (DO NOT use in production)
# DEP_HALLUCINATOR_DEBUG=false
# Enable verbose output
# DEP_HALLUCINATOR_VERBOSE=false
# Skip SSL verification (DANGEROUS - only for testing)
# DEP_HALLUCINATOR_SKIP_SSL_VERIFY=false