api/config: add configuration for streamLifespan (#792)

This commit is contained in:
lath
2024-10-03 08:27:28 +02:00
committed by GitHub
parent b3137ad9ac
commit c2d7e1df12
2 changed files with 2 additions and 1 deletions

View File

@ -26,7 +26,7 @@ const env = {
rateLimitMax: (process.env.RATELIMIT_MAX && parseInt(process.env.RATELIMIT_MAX)) || 20,
durationLimit: (process.env.DURATION_LIMIT && parseInt(process.env.DURATION_LIMIT)) || 10800,
streamLifespan: 90,
streamLifespan: (process.env.TUNNEL_LIFESPAN && parseInt(process.env.TUNNEL_LIFESPAN)) || 90,
processingPriority: process.platform !== 'win32'
&& process.env.PROCESSING_PRIORITY