mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2026-08-17 16:34:54 -05:00
Add warning for web_videos directory name
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@peertube/peertube-runner",
|
||||
"version": "0.0.6",
|
||||
"version": "0.0.7",
|
||||
"type": "module",
|
||||
"main": "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 { CONFIG, getLocalConfigFilePath, isEmailEnabled, reloadConfig } from './config.js'
|
||||
import { WEBSERVER } from './constants.js'
|
||||
import { basename } from 'path'
|
||||
|
||||
async function checkActivityPubUrls () {
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user