Remove references to Electron

This commit is contained in:
Chocobozzz 2016-10-13 21:48:55 +02:00
parent 82221ac920
commit 5683534893
4 changed files with 2 additions and 16 deletions

View File

@ -18,6 +18,3 @@ storage:
logs: 'logs/' logs: 'logs/'
thumbnails: 'thumbnails/' thumbnails: 'thumbnails/'
torrents: 'torrents/' torrents: 'torrents/'
electron:
debug: false

View File

@ -7,6 +7,3 @@ webserver:
database: database:
host: 'localhost' host: 'localhost'
port: 27017 port: 27017
electron:
debug: false

View File

@ -17,8 +17,8 @@ function checkConfig () {
const required = [ 'listen.port', const required = [ 'listen.port',
'webserver.https', 'webserver.host', 'webserver.port', 'webserver.https', 'webserver.host', 'webserver.port',
'database.host', 'database.port', 'database.suffix', 'database.host', 'database.port', 'database.suffix',
'storage.certs', 'storage.uploads', 'storage.logs', 'storage.thumbnails', 'storage.certs', 'storage.uploads', 'storage.logs', 'storage.thumbnails'
'electron.debug' ] ]
const miss = [] const miss = []
for (const key of required) { for (const key of required) {

View File

@ -35,9 +35,6 @@ const CONFIG = {
HOST: config.get('database.host'), HOST: config.get('database.host'),
PORT: config.get('database.port') PORT: config.get('database.port')
}, },
ELECTRON: {
DEBUG: config.get('electron.debug')
},
STORAGE: { STORAGE: {
CERT_DIR: path.join(__dirname, '..', '..', config.get('storage.certs')), CERT_DIR: path.join(__dirname, '..', '..', config.get('storage.certs')),
LOG_DIR: path.join(__dirname, '..', '..', config.get('storage.logs')), LOG_DIR: path.join(__dirname, '..', '..', config.get('storage.logs')),
@ -138,10 +135,6 @@ const USER_ROLES = {
USER: 'user' USER: 'user'
} }
// Seeds in parallel we send to electron when "seed all"
// Once a video is in seeding state we seed another video etc
const SEEDS_IN_PARALLEL = 3
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
// Special constants for a test instance // Special constants for a test instance
@ -169,7 +162,6 @@ module.exports = {
REQUESTS_LIMIT, REQUESTS_LIMIT,
RETRY_REQUESTS, RETRY_REQUESTS,
SEARCHABLE_COLUMNS, SEARCHABLE_COLUMNS,
SEEDS_IN_PARALLEL,
SORTABLE_COLUMNS, SORTABLE_COLUMNS,
STATIC_PATHS, STATIC_PATHS,
THUMBNAILS_SIZE, THUMBNAILS_SIZE,