-// Number of points we add/remove from a friend after a successful/bad request
-const PODS_SCORE = {
- PENALTY: -10,
- BONUS: 10
-}
-
-// Time to wait between requests to the friends (10 min)
-let REQUESTS_INTERVAL = 600000
-
-// Number of requests in parallel we can make
-const REQUESTS_IN_PARALLEL = 10
-
-// To how many pods we send requests
-const REQUESTS_LIMIT_PODS = 10
-// How many requests we send to a pod per interval
-const REQUESTS_LIMIT_PER_POD = 5
-
-const REQUESTS_VIDEO_QADU_LIMIT_PODS = 10
-// The QADU requests are not big
-const REQUESTS_VIDEO_QADU_LIMIT_PER_POD = 50
-
-const REQUESTS_VIDEO_EVENT_LIMIT_PODS = 10
-// The EVENTS requests are not big
-const REQUESTS_VIDEO_EVENT_LIMIT_PER_POD = 50
-
-// Number of requests to retry for replay requests module
-const RETRY_REQUESTS = 5
-
-const REQUEST_ENDPOINTS: { [ id: string ]: RequestEndpoint } = {
- VIDEOS: 'videos'
-}
-
-const REQUEST_ENDPOINT_ACTIONS: {
- [ id: string ]: {
- [ id: string ]: RemoteVideoRequestType
+const SERVER_ACTOR_NAME = 'peertube'
+
+const ACTIVITY_PUB = {
+ POTENTIAL_ACCEPT_HEADERS: [
+ 'application/activity+json',
+ 'application/ld+json'
+ ],
+ ACCEPT_HEADER: 'application/activity+json, application/ld+json',
+ PUBLIC: 'https://www.w3.org/ns/activitystreams#Public',
+ COLLECTION_ITEMS_PER_PAGE: 10,
+ FETCH_PAGE_LIMIT: 100,
+ MAX_HTTP_ATTEMPT: 5,
+ URL_MIME_TYPES: {
+ VIDEO: [ 'video/mp4', 'video/webm', 'video/ogg' ], // TODO: Merge with VIDEO_MIMETYPE_EXT
+ TORRENT: [ 'application/x-bittorrent' ],
+ MAGNET: [ 'application/x-bittorrent;x-scheme-handler/magnet' ]