1
0
Fork 0
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:
Chocobozzz 2025-08-11 16:55:37 +02:00
parent b4df49b87f
commit da23ad1d09
No known key found for this signature in database
GPG key ID: 583A612D890159BE
8 changed files with 18 additions and 24 deletions

View file

@ -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'),