mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Make the network auto sufficient (eject bad pods with scores)
This commit is contained in:
parent
2e3b5b0db6
commit
3bcb78b3af
14 changed files with 310 additions and 49 deletions
10
server.js
10
server.js
|
@ -1,9 +1,6 @@
|
|||
;(function () {
|
||||
'use strict'
|
||||
|
||||
// ----------- Constants -----------
|
||||
global.API_VERSION = 'v1'
|
||||
|
||||
// ----------- Node modules -----------
|
||||
var bodyParser = require('body-parser')
|
||||
var express = require('express')
|
||||
|
@ -30,11 +27,16 @@
|
|||
|
||||
checker.createDirectoriesIfNotExist()
|
||||
|
||||
// ----------- Constants -----------
|
||||
var utils = require('./src/utils')
|
||||
|
||||
global.API_VERSION = 'v1'
|
||||
global.FRIEND_BASE_SCORE = utils.isTestInstance() ? 20 : 100
|
||||
|
||||
// ----------- PeerTube modules -----------
|
||||
var config = require('config')
|
||||
var logger = require('./src/logger')
|
||||
var routes = require('./routes')
|
||||
var utils = require('./src/utils')
|
||||
var videos = require('./src/videos')
|
||||
var webtorrent = require('./src/webTorrentNode')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue