Add warning for web_videos directory name
This commit is contained in:
parent
9f9522e865
commit
bda1d751a5
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@peertube/peertube-runner",
|
"name": "@peertube/peertube-runner",
|
||||||
"version": "0.0.6",
|
"version": "0.0.7",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/peertube-runner.js",
|
"main": "dist/peertube-runner.js",
|
||||||
"bin": "dist/peertube-runner.js",
|
"bin": "dist/peertube-runner.js",
|
||||||
|
|
|
@ -13,6 +13,7 @@ import { OAuthClientModel } from '../models/oauth/oauth-client.js'
|
||||||
import { UserModel } from '../models/user/user.js'
|
import { UserModel } from '../models/user/user.js'
|
||||||
import { CONFIG, getLocalConfigFilePath, isEmailEnabled, reloadConfig } from './config.js'
|
import { CONFIG, getLocalConfigFilePath, isEmailEnabled, reloadConfig } from './config.js'
|
||||||
import { WEBSERVER } from './constants.js'
|
import { WEBSERVER } from './constants.js'
|
||||||
|
import { basename } from 'path'
|
||||||
|
|
||||||
async function checkActivityPubUrls () {
|
async function checkActivityPubUrls () {
|
||||||
const actor = await getServerActor()
|
const actor = await getServerActor()
|
||||||
|
@ -224,6 +225,11 @@ function checkStorageConfig () {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const webVideosDirname = basename(CONFIG.STORAGE.WEB_VIDEOS_DIR)
|
||||||
|
if (webVideosDirname !== 'web-videos') {
|
||||||
|
logger.warn(`storage.web_videos configuration should have a "web-videos" directory name (current value: "${webVideosDirname}")`)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CONFIG.STORAGE.WEB_VIDEOS_DIR === CONFIG.STORAGE.REDUNDANCY_DIR) {
|
if (CONFIG.STORAGE.WEB_VIDEOS_DIR === CONFIG.STORAGE.REDUNDANCY_DIR) {
|
||||||
|
|
Loading…
Reference in New Issue