Add warning in production.yaml
To avoid confusion with the local-production.json file
This commit is contained in:
parent
2c29ad4f3b
commit
509cd56aca
|
@ -42,6 +42,19 @@ storage:
|
||||||
log:
|
log:
|
||||||
level: 'info' # debug/info/warning/error
|
level: 'info' # debug/info/warning/error
|
||||||
|
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
#
|
||||||
|
# From this point, all the following keys can be overrode by the web interface
|
||||||
|
# (local-production.json file). If you need to change some values, prefer to
|
||||||
|
# use the web interface because the configuration will be automatically
|
||||||
|
# reloaded without any need to restart PeerTube.
|
||||||
|
#
|
||||||
|
# /!\ If you already have a local-production.json file, the modification of the
|
||||||
|
# following keys will have no effect /!\.
|
||||||
|
#
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
previews:
|
previews:
|
||||||
size: 100 # Max number of previews you want to cache
|
size: 100 # Max number of previews you want to cache
|
||||||
|
|
|
@ -114,6 +114,7 @@ async function updateCustomConfig (req: express.Request, res: express.Response,
|
||||||
// Need to change the videoQuota key a little bit
|
// Need to change the videoQuota key a little bit
|
||||||
const toUpdateJSON = omit(toUpdate, 'videoQuota')
|
const toUpdateJSON = omit(toUpdate, 'videoQuota')
|
||||||
toUpdateJSON.user['video_quota'] = toUpdate.user.videoQuota
|
toUpdateJSON.user['video_quota'] = toUpdate.user.videoQuota
|
||||||
|
delete toUpdate.user.videoQuota
|
||||||
|
|
||||||
await writeFilePromise(CONFIG.CUSTOM_FILE, JSON.stringify(toUpdateJSON))
|
await writeFilePromise(CONFIG.CUSTOM_FILE, JSON.stringify(toUpdateJSON))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue