diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-05 15:28:49 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | f023a19c3eeeea2b014b47fae522a62eab320048 (patch) | |
tree | 988ff97432663db928f1e3e3f498da856e739de1 /server.ts | |
parent | 345da516fae80f24c90c2196e96393b489af2243 (diff) | |
download | PeerTube-f023a19c3eeeea2b014b47fae522a62eab320048.tar.gz PeerTube-f023a19c3eeeea2b014b47fae522a62eab320048.tar.zst PeerTube-f023a19c3eeeea2b014b47fae522a62eab320048.zip |
WIP plugins: install/uninstall
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1,4 +1,6 @@ | |||
1 | // FIXME: https://github.com/nodejs/node/pull/16853 | 1 | // FIXME: https://github.com/nodejs/node/pull/16853 |
2 | import { PluginManager } from './server/lib/plugins/plugin-manager' | ||
3 | |||
2 | require('tls').DEFAULT_ECDH_CURVE = 'auto' | 4 | require('tls').DEFAULT_ECDH_CURVE = 'auto' |
3 | 5 | ||
4 | import { isTestInstance } from './server/helpers/core-utils' | 6 | import { 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) |