mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 01:39:37 +02:00
Add ability for admin to configure request timeout
AFAIK we can't set a specific timeout on a specific route/request, so the admin must set it globally
This commit is contained in:
parent
b4df49b87f
commit
da23ad1d09
8 changed files with 18 additions and 24 deletions
|
@ -29,6 +29,9 @@ const CONFIG = {
|
|||
SECRETS: {
|
||||
PEERTUBE: config.get<string>('secrets.peertube')
|
||||
},
|
||||
HTTP_TIMEOUTS: {
|
||||
REQUEST: parseDurationToMs(config.get<number>('http_timeouts.request'))
|
||||
},
|
||||
DATABASE: {
|
||||
DBNAME: config.has('database.name') ? config.get<string>('database.name') : 'peertube' + config.get<string>('database.suffix'),
|
||||
HOSTNAME: config.get<string>('database.hostname'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue