mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 09:49:20 +02:00
Implement user import/export in server
This commit is contained in:
parent
4d63e6f577
commit
8573e5a80a
196 changed files with 5661 additions and 722 deletions
|
@ -153,6 +153,11 @@ const CONFIG = {
|
|||
BUCKET_NAME: config.get<string>('object_storage.streaming_playlists.bucket_name'),
|
||||
PREFIX: config.get<string>('object_storage.streaming_playlists.prefix'),
|
||||
BASE_URL: config.get<string>('object_storage.streaming_playlists.base_url')
|
||||
},
|
||||
USER_EXPORTS: {
|
||||
BUCKET_NAME: config.get<string>('object_storage.user_exports.bucket_name'),
|
||||
PREFIX: config.get<string>('object_storage.user_exports.prefix'),
|
||||
BASE_URL: config.get<string>('object_storage.user_exports.base_url')
|
||||
}
|
||||
},
|
||||
WEBSERVER: {
|
||||
|
@ -511,6 +516,16 @@ const CONFIG = {
|
|||
get FULL_SYNC_VIDEOS_LIMIT () {
|
||||
return config.get<number>('import.video_channel_synchronization.full_sync_videos_limit')
|
||||
}
|
||||
},
|
||||
USERS: {
|
||||
get ENABLED () { return config.get<boolean>('import.users.enabled') }
|
||||
}
|
||||
},
|
||||
EXPORT: {
|
||||
USERS: {
|
||||
get ENABLED () { return config.get<boolean>('export.users.enabled') },
|
||||
get MAX_USER_VIDEO_QUOTA () { return parseBytes(config.get<string>('export.users.max_user_video_quota')) },
|
||||
get EXPORT_EXPIRATION () { return parseDurationToMs(config.get<string>('export.users.export_expiration')) }
|
||||
}
|
||||
},
|
||||
AUTO_BLACKLIST: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue