From 91c32e3b971db175d8cee9ff103c6c94e6eb305e Mon Sep 17 00:00:00 2001 From: halozat Date: Tue, 1 Oct 2024 20:16:34 +0200 Subject: [PATCH] api/config: rename `STREAM_LIFESPAN` to `TUNNEL_LIFESPAN` --- api/src/config.js | 2 +- docs/run-an-instance.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/config.js b/api/src/config.js index dd8c8694..1f00231e 100644 --- a/api/src/config.js +++ b/api/src/config.js @@ -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: (process.env.STREAM_LIFESPAN && parseInt(process.env.STREAM_LIFESPAN)) || 90, + streamLifespan: (process.env.TUNNEL_LIFESPAN && parseInt(process.env.TUNNEL_LIFESPAN)) || 90, processingPriority: process.platform !== 'win32' && process.env.PROCESSING_PRIORITY diff --git a/docs/run-an-instance.md b/docs/run-an-instance.md index df39132d..4e41c73b 100644 --- a/docs/run-an-instance.md +++ b/docs/run-an-instance.md @@ -71,7 +71,7 @@ sudo service nscd start | `RATELIMIT_WINDOW` | `60` | `120` | rate limit time window in **seconds**. | | `RATELIMIT_MAX` | `20` | `30` | max requests per time window. requests above this amount will be blocked for the rate limit window duration. | | `DURATION_LIMIT` | `10800` | `18000` | max allowed video duration in **seconds**. | -| `STREAM_LIFESPAN` | `90` | `120` | the duration a stream remains accessible for in **seconds**. | +| `TUNNEL_LIFESPAN` | `90` | `120` | the duration for which tunnel info is stored in ram, **in seconds**. | \* the higher the nice value, the lower the priority. [read more here](https://en.wikipedia.org/wiki/Nice_(Unix)).