diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-16 11:33:22 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | 6702a1b2ccd666285dee9c72b5bace641d2fce8b (patch) | |
tree | 78b7125d664b6f6b6c993c4e8483e1bdd24a0a30 /server/initializers | |
parent | 503c6f440abc8f5924c38c4bd63591cb6cefacec (diff) | |
download | PeerTube-6702a1b2ccd666285dee9c72b5bace641d2fce8b.tar.gz PeerTube-6702a1b2ccd666285dee9c72b5bace641d2fce8b.tar.zst PeerTube-6702a1b2ccd666285dee9c72b5bace641d2fce8b.zip |
Add ability to search available plugins
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/config.ts | 6 | ||||
-rw-r--r-- | server/initializers/constants.ts | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts index dfc4bea21..2c1b30021 100644 --- a/server/initializers/config.ts +++ b/server/initializers/config.ts | |||
@@ -134,6 +134,12 @@ const CONFIG = { | |||
134 | } | 134 | } |
135 | } | 135 | } |
136 | }, | 136 | }, |
137 | PLUGINS: { | ||
138 | INDEX: { | ||
139 | ENABLED: config.get<boolean>('plugins.index.enabled'), | ||
140 | URL: config.get<boolean>('plugins.index.url') | ||
141 | } | ||
142 | }, | ||
137 | ADMIN: { | 143 | ADMIN: { |
138 | get EMAIL () { return config.get<string>('admin.email') } | 144 | get EMAIL () { return config.get<string>('admin.email') } |
139 | }, | 145 | }, |
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 2d487a263..06e8c070b 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -64,7 +64,9 @@ const SORTABLE_COLUMNS = { | |||
64 | 64 | ||
65 | VIDEO_PLAYLISTS: [ 'displayName', 'createdAt', 'updatedAt' ], | 65 | VIDEO_PLAYLISTS: [ 'displayName', 'createdAt', 'updatedAt' ], |
66 | 66 | ||
67 | PLUGINS: [ 'name', 'createdAt', 'updatedAt' ] | 67 | PLUGINS: [ 'name', 'createdAt', 'updatedAt' ], |
68 | |||
69 | AVAILABLE_PLUGINS: [ 'npmName', 'popularity' ] | ||
68 | } | 70 | } |
69 | 71 | ||
70 | const OAUTH_LIFETIME = { | 72 | const OAUTH_LIFETIME = { |
@@ -165,6 +167,7 @@ const SCHEDULER_INTERVALS_MS = { | |||
165 | removeOldJobs: 60000 * 60, // 1 hour | 167 | removeOldJobs: 60000 * 60, // 1 hour |
166 | updateVideos: 60000, // 1 minute | 168 | updateVideos: 60000, // 1 minute |
167 | youtubeDLUpdate: 60000 * 60 * 24, // 1 day | 169 | youtubeDLUpdate: 60000 * 60 * 24, // 1 day |
170 | checkPlugins: 60000 * 60 * 24, // 1 day | ||
168 | removeOldViews: 60000 * 60 * 24, // 1 day | 171 | removeOldViews: 60000 * 60 * 24, // 1 day |
169 | removeOldHistory: 60000 * 60 * 24 // 1 day | 172 | removeOldHistory: 60000 * 60 * 24 // 1 day |
170 | } | 173 | } |