diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-10 09:23:18 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-10 09:23:18 +0200 |
commit | 31b6ddf86652502e0c96d77fa10861ce4af11aa4 (patch) | |
tree | b94402972945699134b2a504af5d551124f0bf54 /server/initializers/constants.ts | |
parent | 22834691abb6e74d31654ffd2ebeaaaa8ef3ac7b (diff) | |
download | PeerTube-31b6ddf86652502e0c96d77fa10861ce4af11aa4.tar.gz PeerTube-31b6ddf86652502e0c96d77fa10861ce4af11aa4.tar.zst PeerTube-31b6ddf86652502e0c96d77fa10861ce4af11aa4.zip |
Add ability to disable tracker
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 097199f84..3f02572db 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -243,6 +243,11 @@ const CONFIG = { | |||
243 | REPORT_ONLY: config.get<boolean>('csp.report_only'), | 243 | REPORT_ONLY: config.get<boolean>('csp.report_only'), |
244 | REPORT_URI: config.get<boolean>('csp.report_uri') | 244 | REPORT_URI: config.get<boolean>('csp.report_uri') |
245 | }, | 245 | }, |
246 | TRACKER: { | ||
247 | ENABLED: config.get<boolean>('tracker.enabled'), | ||
248 | PRIVATE: config.get<boolean>('tracker.private'), | ||
249 | REJECT_TOO_MANY_ANNOUNCES: config.get<boolean>('tracker.reject_too_many_announces') | ||
250 | }, | ||
246 | ADMIN: { | 251 | ADMIN: { |
247 | get EMAIL () { return config.get<string>('admin.email') } | 252 | get EMAIL () { return config.get<string>('admin.email') } |
248 | }, | 253 | }, |