diff options
author | Chocobozzz <chocobozzz@cpy.re> | 2021-05-27 15:59:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-27 15:59:55 +0200 |
commit | 2539932e16129992a2c0889b4ff527c265a8e2c7 (patch) | |
tree | fb5048e63e02a2485eb96d27455f43e4b22e8ae0 /server.ts | |
parent | eb34ec30e0b57286fc6f85160490d2e973a3b0b1 (diff) | |
download | PeerTube-2539932e16129992a2c0889b4ff527c265a8e2c7.tar.gz PeerTube-2539932e16129992a2c0889b4ff527c265a8e2c7.tar.zst PeerTube-2539932e16129992a2c0889b4ff527c265a8e2c7.zip |
Instance homepage support (#4007)
* Prepare homepage parsers
* Add ability to update instance hompage
* Add ability to set homepage as landing page
* Add homepage preview in admin
* Dynamically update left menu for homepage
* Inject home content in homepage
* Add videos list and channel miniature custom markup
* Remove unused elements in markup service
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -127,6 +127,7 @@ import { PluginManager } from './server/lib/plugins/plugin-manager' | |||
127 | import { LiveManager } from './server/lib/live-manager' | 127 | import { LiveManager } from './server/lib/live-manager' |
128 | import { HttpStatusCode } from './shared/core-utils/miscs/http-error-codes' | 128 | import { HttpStatusCode } from './shared/core-utils/miscs/http-error-codes' |
129 | import { VideosTorrentCache } from '@server/lib/files-cache/videos-torrent-cache' | 129 | import { VideosTorrentCache } from '@server/lib/files-cache/videos-torrent-cache' |
130 | import { ServerConfigManager } from '@server/lib/server-config-manager' | ||
130 | 131 | ||
131 | // ----------- Command line ----------- | 132 | // ----------- Command line ----------- |
132 | 133 | ||
@@ -262,7 +263,8 @@ async function startApplication () { | |||
262 | 263 | ||
263 | await Promise.all([ | 264 | await Promise.all([ |
264 | Emailer.Instance.checkConnection(), | 265 | Emailer.Instance.checkConnection(), |
265 | JobQueue.Instance.init() | 266 | JobQueue.Instance.init(), |
267 | ServerConfigManager.Instance.init() | ||
266 | ]) | 268 | ]) |
267 | 269 | ||
268 | // Caches initializations | 270 | // Caches initializations |