aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/checker.ts3
-rw-r--r--server/initializers/constants.ts5
2 files changed, 7 insertions, 1 deletions
diff --git a/server/initializers/checker.ts b/server/initializers/checker.ts
index d550fd23f..e5cc1b7be 100644
--- a/server/initializers/checker.ts
+++ b/server/initializers/checker.ts
@@ -23,7 +23,8 @@ function checkMissedConfig () {
23 'database.hostname', 'database.port', 'database.suffix', 'database.username', 'database.password', 23 'database.hostname', 'database.port', 'database.suffix', 'database.username', 'database.password',
24 'storage.videos', 'storage.logs', 'storage.thumbnails', 'storage.previews', 'storage.torrents', 'storage.cache', 'log.level', 24 'storage.videos', 'storage.logs', 'storage.thumbnails', 'storage.previews', 'storage.torrents', 'storage.cache', 'log.level',
25 'cache.previews.size', 'admin.email', 'signup.enabled', 'signup.limit', 'transcoding.enabled', 'transcoding.threads', 25 'cache.previews.size', 'admin.email', 'signup.enabled', 'signup.limit', 'transcoding.enabled', 'transcoding.threads',
26 'user.video_quota', 'smtp.hostname', 'smtp.port', 'smtp.username', 'smtp.password', 'smtp.tls', 'smtp.from_address' 26 'user.video_quota', 'smtp.hostname', 'smtp.port', 'smtp.username', 'smtp.password', 'smtp.tls', 'smtp.from_address',
27 'instance.name', 'instance.description', 'instance.terms'
27 ] 28 ]
28 const miss: string[] = [] 29 const miss: string[] = []
29 30
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index e7b1656e2..e531c4c39 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -154,6 +154,11 @@ const CONFIG = {
154 PREVIEWS: { 154 PREVIEWS: {
155 get SIZE () { return config.get<number>('cache.previews.size') } 155 get SIZE () { return config.get<number>('cache.previews.size') }
156 } 156 }
157 },
158 INSTANCE: {
159 get NAME () { return config.get<string>('instance.name') },
160 get DESCRIPTION () { return config.get<string>('instance.description') },
161 get TERMS () { return config.get<string>('instance.terms') }
157 } 162 }
158} 163}
159 164