mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Add ability to customize token lifetime
This commit is contained in:
parent
518c5cc62d
commit
b65f5367ba
11 changed files with 229 additions and 195 deletions
|
@ -101,11 +101,6 @@ const SORTABLE_COLUMNS = {
|
|||
VIDEO_REDUNDANCIES: [ 'name' ]
|
||||
}
|
||||
|
||||
const OAUTH_LIFETIME = {
|
||||
ACCESS_TOKEN: 3600 * 24, // 1 day, for upload
|
||||
REFRESH_TOKEN: 1209600 // 2 weeks
|
||||
}
|
||||
|
||||
const ROUTE_CACHE_LIFETIME = {
|
||||
FEEDS: '15 minutes',
|
||||
ROBOTS: '2 hours',
|
||||
|
@ -1033,7 +1028,6 @@ export {
|
|||
JOB_ATTEMPTS,
|
||||
AP_CLEANER,
|
||||
LAST_MIGRATION_VERSION,
|
||||
OAUTH_LIFETIME,
|
||||
CUSTOM_HTML_TAG_COMMENTS,
|
||||
STATS_TIMESERIE,
|
||||
BROADCAST_CONCURRENCY,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue