fix:/ add api protections :3

This commit is contained in:
Heidi
2026-05-14 16:02:56 +01:00
parent 0ca2dcdcf2
commit a4931d3bbc
4 changed files with 231 additions and 12 deletions
+4
View File
@@ -8,6 +8,10 @@ module.exports = {
NODE_ENV: 'production',
PORT: process.env.PORT || 3010,
API_UPSTREAM: process.env.API_UPSTREAM || 'http://127.0.0.1:6000',
PUBLIC_ORIGIN: process.env.PUBLIC_ORIGIN || '',
API_CACHE_TTL_MS: process.env.API_CACHE_TTL_MS || 15000,
API_RATE_LIMIT_WINDOW_MS: process.env.API_RATE_LIMIT_WINDOW_MS || 60000,
API_RATE_LIMIT_MAX: process.env.API_RATE_LIMIT_MAX || 120,
},
},
{