-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
67 lines (54 loc) · 2.5 KB
/
Copy path.env.example
File metadata and controls
67 lines (54 loc) · 2.5 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
NODE_ENV="production"
INSTANCE_URL=""
INSTANCE_TOKEN=""
INSTANCE_AUTOMOD="UsernameGoesHere" # skip events by this user
# Discord Notifications
DISCORD_WEBHOOK_URL=""
# User Polling Settings
USER_POLL_INTERVAL=30000
USER_POLL_LIMIT=50
# Detection Thresholds
NSFW_THRESHOLD=0.5
SPAM_SCORE_THRESHOLD=2
PHISHING_SCORE_THRESHOLD=2
# ==========================================
# Virus Detection Settings
# ==========================================
# Scanning Options
VIRUS_SCAN_FILES=true # Enable file attachment scanning
VIRUS_SCAN_LINKS=true # Enable URL/link scanning
# ClamAV Configuration
VIRUS_CLAMAV_ENABLED=true # Enable ClamAV integration
VIRUS_CLAMAV_SOCKET=/var/run/clamav/clamd.ctl # ClamAV socket path
# VIRUS_CLAMAV_HOST=localhost # Alternative: use TCP connection
# VIRUS_CLAMAV_PORT=3310 # ClamAV TCP port
# File Scanning Limits
VIRUS_MAX_FILE_SIZE=104857600 # Max file size to scan (100MB in bytes)
VIRUS_MAX_FILES_PER_NOTE=20 # Max files to scan per note
VIRUS_MAX_LINKS_PER_NOTE=50 # Max links to scan per note
# Auto-Moderation Actions
VIRUS_AUTO_DELETE=true # Auto-delete confirmed malware
VIRUS_AUTO_DELETE_SUSPICIOUS=false # Auto-delete suspicious content too
VIRUS_DELETE_FILES=true # Delete files from drive
VIRUS_DELETE_NOTE=true # Delete the note/post
VIRUS_QUARANTINE=true # Store in quarantine cache
# User Actions
VIRUS_SUSPEND_USER=false # Auto-suspend repeat offenders
VIRUS_SUSPEND_THRESHOLD=3 # Violations before suspension
VIRUS_SILENCE_USER=false # Silence users instead of suspending
VIRUS_SILENCE_DURATION=86400000 # Silence duration (24h in ms)
# Cache & History
VIRUS_TRACK_USER_HISTORY=true # Track user violation history
VIRUS_CACHE_TTL=7776000 # Cache TTL (90 days in seconds)
# Performance
VIRUS_SCAN_TIMEOUT=30000 # ClamAV scan timeout (30s in ms)
VIRUS_DOWNLOAD_TIMEOUT=30000 # File download timeout (30s in ms)
# Notifications
VIRUS_NOTIFY_CONFIRMED=true # Notify on confirmed malware
VIRUS_NOTIFY_SUSPICIOUS=true # Notify on suspicious content
VIRUS_NOTIFY_GROUP_BY_USER=true # Group notifications per user
VIRUS_NOTIFY_GROUPING_WINDOW=300000 # Grouping time window (5min in ms)
# Logging
VIRUS_LOG_VERBOSE=false # Enable verbose logging
VIRUS_LOG_STATS=true # Enable periodic stats logging
VIRUS_STATS_INTERVAL=3600000 # Stats interval (1h in ms)