aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2015-11-24 08:33:59 +0100
committerChocobozzz <florian.bigard@gmail.com>2015-11-24 08:33:59 +0100
commit3bcb78b3aff565996ee0e2aa96bce7f1bdd6d66a (patch)
treeb202172a35956b252282105f614fc9646ca64ebb /server.js
parent2e3b5b0db652ae4787e359aadbd4f52e473b6af7 (diff)
downloadPeerTube-3bcb78b3aff565996ee0e2aa96bce7f1bdd6d66a.tar.gz
PeerTube-3bcb78b3aff565996ee0e2aa96bce7f1bdd6d66a.tar.zst
PeerTube-3bcb78b3aff565996ee0e2aa96bce7f1bdd6d66a.zip
Make the network auto sufficient (eject bad pods with scores)
Diffstat (limited to 'server.js')
-rw-r--r--server.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/server.js b/server.js
index 715556414..3b899689c 100644
--- a/server.js
+++ b/server.js
@@ -1,9 +1,6 @@
1;(function () { 1;(function () {
2 'use strict' 2 'use strict'
3 3
4 // ----------- Constants -----------
5 global.API_VERSION = 'v1'
6
7 // ----------- Node modules ----------- 4 // ----------- Node modules -----------
8 var bodyParser = require('body-parser') 5 var bodyParser = require('body-parser')
9 var express = require('express') 6 var express = require('express')
@@ -30,11 +27,16 @@
30 27
31 checker.createDirectoriesIfNotExist() 28 checker.createDirectoriesIfNotExist()
32 29
30 // ----------- Constants -----------
31 var utils = require('./src/utils')
32
33 global.API_VERSION = 'v1'
34 global.FRIEND_BASE_SCORE = utils.isTestInstance() ? 20 : 100
35
33 // ----------- PeerTube modules ----------- 36 // ----------- PeerTube modules -----------
34 var config = require('config') 37 var config = require('config')
35 var logger = require('./src/logger') 38 var logger = require('./src/logger')
36 var routes = require('./routes') 39 var routes = require('./routes')
37 var utils = require('./src/utils')
38 var videos = require('./src/videos') 40 var videos = require('./src/videos')
39 var webtorrent = require('./src/webTorrentNode') 41 var webtorrent = require('./src/webTorrentNode')
40 42