Cache LRU sur entry endpoints (movie/tv/imdb/providers) + allowlist loopback du rate limit

This commit is contained in:
unfr
2026-05-10 01:14:33 +02:00
parent 8247544d1b
commit 92005a9cbe
4 changed files with 33 additions and 6 deletions

View File

@@ -35,6 +35,11 @@ export const SESSION_SECRET = required('SESSION_SECRET');
export const PORT = int('PORT', 3000);
export const HOST = str('HOST', '0.0.0.0');
export const RATE_LIMIT_PER_SEC = int('RATE_LIMIT_PER_SEC', 50);
// Comma-separated IPs exempted from rate limit. Loopback always exempted.
export const RATE_LIMIT_ALLOWLIST = (str('RATE_LIMIT_ALLOWLIST', '') || '')
.split(',')
.map((s) => s.trim())
.filter(Boolean);
// URLs externes
export const TMDB_API_BASE = str('TMDB_API_BASE', 'https://api.themoviedb.org/3');