mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Add ability to add custom css/javascript
This commit is contained in:
parent
6221f311de
commit
00b5556c18
15 changed files with 143 additions and 14 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue