-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
69 lines (56 loc) · 1.95 KB
/
.env.example
File metadata and controls
69 lines (56 loc) · 1.95 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
# Slack credentials (required)
SLACK_SIGNING_SECRET=your-signing-secret
SLACK_BOT_TOKEN=xoxb-your-bot-token
# Server
PORT=3000
# Database (required) — shared PostgreSQL on the host.
# When running in Docker, use host.docker.internal to reach the host:
DATABASE_URL=postgresql://paperscout:secret@host.docker.internal:5432/paperscout
# Scheduling
POLL_INTERVAL_MINUTES=30
# Min sleep after an overrun cycle (poll took > poll_interval_minutes).
POLL_OVERRUN_COOLDOWN_SECONDS=300
ENABLE_BULK_WG21=true
ENABLE_BULK_OPENSTD=true
ENABLE_ISO_PROBE=true
# Probe prefixes / extensions (used for gap/unknown numbers)
PROBE_PREFIXES=["D","P"]
PROBE_EXTENSIONS=[".pdf",".html"]
# Frontier
FRONTIER_WINDOW_ABOVE=60
FRONTIER_WINDOW_BELOW=30
FRONTIER_EXPLICIT_RANGES=[]
# Max gap between consecutive P-numbers before treating a number as an outlier
# (filters pre-assigned far-future numbers like P5000 from the frontier).
FRONTIER_GAP_THRESHOLD=50
# Hot probing (every poll cycle)
# Papers with a date within this many months are probed every 30 min.
HOT_LOOKBACK_MONTHS=6
# Revisions ahead of the known latest to probe for hot papers.
HOT_REVISION_DEPTH=2
# Cold probing (distributed across cold_cycle_divisor cycles ≈ once per day)
COLD_REVISION_DEPTH=1
# 48 × 30 min = 24 h; every P-number gets probed once within this window.
COLD_CYCLE_DIVISOR=48
# Gap / unknown numbers (no index entry): probe R0 through this revision.
GAP_MAX_REV=1
# Timestamp-based alerting
# Only notify for drafts where the server's Last-Modified header is within
# this many hours of now. Falls back to "alert" when the header is absent.
ALERT_MODIFIED_HOURS=24
# HTTP client
HTTP_CONCURRENCY=20
HTTP_TIMEOUT_SECONDS=10
HTTP_USE_HTTP2=true
# Notifications
NOTIFICATION_CHANNEL=
NOTIFY_ON_FRONTIER_HIT=true
NOTIFY_ON_ANY_DRAFT=true
NOTIFY_ON_DP_TRANSITION=true
# Storage
DATA_DIR=./data
CACHE_TTL_HOURS=1
# Logging
# Log level for both console and file (DEBUG|INFO|WARNING|ERROR).
LOG_LEVEL=INFO
LOG_RETENTION_DAYS=7