Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api/config: add configuration for streamLifespan #792

Merged
merged 2 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.STREAM_LIFESPAN && parseInt(process.env.STREAM_LIFESPAN)) || 90,

processingPriority: process.platform !== 'win32'
&& process.env.PROCESSING_PRIORITY
Expand Down
1 change: 1 addition & 0 deletions docs/run-an-instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +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**. |
halozat marked this conversation as resolved.
Show resolved Hide resolved

\* the higher the nice value, the lower the priority. [read more here](https://en.wikipedia.org/wiki/Nice_(Unix)).

Expand Down
Loading