-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
27 lines (24 loc) · 1.13 KB
/
Copy path.env.example
File metadata and controls
27 lines (24 loc) · 1.13 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
PORT=8085
# Cache TTL in seconds (default 86400 = 1 day)
CACHE_TTL=86400
# Optional: set a custom Puppeteer executable path if you provide system Chromium
#PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
# Debug: set to true to persist debug screenshots inside the container `data/` folder
# Useful for troubleshooting but should remain false in normal operation.
DEBUG_SCREENSHOTS=false
# API cache tuning
# - `CACHE_TTL` (seconds): canonical TTL for the in-memory cache (e.g. 86400 = 1 day).
# - `RECENT_TTL_DAYS`: TTL (in days) applied to recent releases (refreshed more often).
# - `RECENT_YEARS`: Number of years that count as "recent" for the updater.
#
# Implementation notes:
# - The API uses `CACHE_TTL` (seconds) and applies per-entry TTLs
# derived from the movie year so recent movies are refreshed more often.
RECENT_TTL_DAYS=7
RECENT_YEARS=2
# Milliseconds to wait between individual FilmAffinity requests (scraping).
# Increase to lower scraping load and reduce rate-limit risk.
REQUEST_DELAY_MS=5000
# Path to SQLite DB file used for persistent ratings storage
# Relative to project root, e.g. `data/ratings.db`
DB_PATH=data/ratings.db