aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-05 15:28:49 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-07-24 10:58:16 +0200
commitf023a19c3eeeea2b014b47fae522a62eab320048 (patch)
tree988ff97432663db928f1e3e3f498da856e739de1 /server.ts
parent345da516fae80f24c90c2196e96393b489af2243 (diff)
downloadPeerTube-f023a19c3eeeea2b014b47fae522a62eab320048.tar.gz
PeerTube-f023a19c3eeeea2b014b47fae522a62eab320048.tar.zst
PeerTube-f023a19c3eeeea2b014b47fae522a62eab320048.zip
WIP plugins: install/uninstall
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/server.ts b/server.ts
index 2f5f39db2..4d20faa9b 100644
--- a/server.ts
+++ b/server.ts
@@ -1,4 +1,6 @@
1// FIXME: https://github.com/nodejs/node/pull/16853 1// FIXME: https://github.com/nodejs/node/pull/16853
2import { PluginManager } from './server/lib/plugins/plugin-manager'
3
2require('tls').DEFAULT_ECDH_CURVE = 'auto' 4require('tls').DEFAULT_ECDH_CURVE = 'auto'
3 5
4import { isTestInstance } from './server/helpers/core-utils' 6import { isTestInstance } from './server/helpers/core-utils'
@@ -259,6 +261,8 @@ async function startApplication () {
259 updateStreamingPlaylistsInfohashesIfNeeded() 261 updateStreamingPlaylistsInfohashesIfNeeded()
260 .catch(err => logger.error('Cannot update streaming playlist infohashes.', { err })) 262 .catch(err => logger.error('Cannot update streaming playlist infohashes.', { err }))
261 263
264 await PluginManager.Instance.registerPlugins()
265
262 // Make server listening 266 // Make server listening
263 server.listen(port, hostname, () => { 267 server.listen(port, hostname, () => {
264 logger.info('Server listening on %s:%d', hostname, port) 268 logger.info('Server listening on %s:%d', hostname, port)