Cache LRU sur entry endpoints (movie/tv/imdb/providers) + allowlist loopback du rate limit
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user