MCPcopy Index your code
hub / github.com/CodeGraphContext/CodeGraphContext / getRepoProtectionConfig

Function getRepoProtectionConfig

website/api/lib/security.js:22–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20}
21
22function getRepoProtectionConfig() {
23 return {
24 cooldownMs: parsePositiveInt(process.env.BUNDLE_TRIGGER_REPO_COOLDOWN_MS, DEFAULT_REPO_COOLDOWN_MS),
25 activeJobTtlMs: parsePositiveInt(process.env.BUNDLE_TRIGGER_ACTIVE_JOB_TTL_MS, DEFAULT_ACTIVE_JOB_TTL_MS),
26 };
27}
28
29function getClientIp(req) {
30 const forwardedFor = req?.headers?.["x-forwarded-for"];

Callers 3

cleanupExpiredEntriesFunction · 0.85
checkRepoCooldownFunction · 0.85
setRepoCooldownFunction · 0.85

Calls 1

parsePositiveIntFunction · 0.85

Tested by

no test coverage detected