1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 18:29:27 +02:00

Add ability to add custom css/javascript

This commit is contained in:
Chocobozzz 2018-02-22 10:22:53 +01:00
parent 6221f311de
commit 00b5556c18
No known key found for this signature in database
GPG key ID: 583A612D890159BE
15 changed files with 143 additions and 14 deletions

View file

@ -43,7 +43,11 @@ async function getConfig (req: express.Request, res: express.Response, next: exp
const json: ServerConfig = {
instance: {
name: CONFIG.INSTANCE.NAME
name: CONFIG.INSTANCE.NAME,
customizations: {
javascript: CONFIG.INSTANCE.CUSTOMIZATIONS.JAVASCRIPT,
css: CONFIG.INSTANCE.CUSTOMIZATIONS.CSS
}
},
serverVersion: packageJSON.version,
signup: {
@ -132,7 +136,11 @@ function customConfig (): CustomConfig {
instance: {
name: CONFIG.INSTANCE.NAME,
description: CONFIG.INSTANCE.DESCRIPTION,
terms: CONFIG.INSTANCE.TERMS
terms: CONFIG.INSTANCE.TERMS,
customizations: {
css: CONFIG.INSTANCE.CUSTOMIZATIONS.CSS,
javascript: CONFIG.INSTANCE.CUSTOMIZATIONS.JAVASCRIPT
}
},
cache: {
previews: {