aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/checker.js4
-rw-r--r--server/initializers/constants.js8
2 files changed, 2 insertions, 10 deletions
diff --git a/server/initializers/checker.js b/server/initializers/checker.js
index 91fbcfaf9..85e9bc98b 100644
--- a/server/initializers/checker.js
+++ b/server/initializers/checker.js
@@ -17,8 +17,8 @@ function checkConfig () {
17 const required = [ 'listen.port', 17 const required = [ 'listen.port',
18 'webserver.https', 'webserver.host', 'webserver.port', 18 'webserver.https', 'webserver.host', 'webserver.port',
19 'database.host', 'database.port', 'database.suffix', 19 'database.host', 'database.port', 'database.suffix',
20 'storage.certs', 'storage.uploads', 'storage.logs', 'storage.thumbnails', 20 'storage.certs', 'storage.uploads', 'storage.logs', 'storage.thumbnails'
21 'electron.debug' ] 21 ]
22 const miss = [] 22 const miss = []
23 23
24 for (const key of required) { 24 for (const key of required) {
diff --git a/server/initializers/constants.js b/server/initializers/constants.js
index 75065fe72..09c4f755e 100644
--- a/server/initializers/constants.js
+++ b/server/initializers/constants.js
@@ -35,9 +35,6 @@ const CONFIG = {
35 HOST: config.get('database.host'), 35 HOST: config.get('database.host'),
36 PORT: config.get('database.port') 36 PORT: config.get('database.port')
37 }, 37 },
38 ELECTRON: {
39 DEBUG: config.get('electron.debug')
40 },
41 STORAGE: { 38 STORAGE: {
42 CERT_DIR: path.join(__dirname, '..', '..', config.get('storage.certs')), 39 CERT_DIR: path.join(__dirname, '..', '..', config.get('storage.certs')),
43 LOG_DIR: path.join(__dirname, '..', '..', config.get('storage.logs')), 40 LOG_DIR: path.join(__dirname, '..', '..', config.get('storage.logs')),
@@ -138,10 +135,6 @@ const USER_ROLES = {
138 USER: 'user' 135 USER: 'user'
139} 136}
140 137
141// Seeds in parallel we send to electron when "seed all"
142// Once a video is in seeding state we seed another video etc
143const SEEDS_IN_PARALLEL = 3
144
145// --------------------------------------------------------------------------- 138// ---------------------------------------------------------------------------
146 139
147// Special constants for a test instance 140// Special constants for a test instance
@@ -169,7 +162,6 @@ module.exports = {
169 REQUESTS_LIMIT, 162 REQUESTS_LIMIT,
170 RETRY_REQUESTS, 163 RETRY_REQUESTS,
171 SEARCHABLE_COLUMNS, 164 SEARCHABLE_COLUMNS,
172 SEEDS_IN_PARALLEL,
173 SORTABLE_COLUMNS, 165 SORTABLE_COLUMNS,
174 STATIC_PATHS, 166 STATIC_PATHS,
175 THUMBNAILS_SIZE, 167 THUMBNAILS_SIZE,