mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Add ability to add custom css/javascript
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user