ActivityPub-federated video streaming platform using P2P directly in your web browser
Add warning for web_videos directory name
Chocobozzzbda1d751a5c6
diff --git a/apps/peertube-runner/package.json b/apps/peertube-runner/package.jsonindex 5d67557ab9..8389a5a016 100644--- a/apps/peertube-runner/package.json+++ b/apps/peertube-runner/package.json@@ -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",diff --git a/server/core/initializers/checker-after-init.ts b/server/core/initializers/checker-after-init.tsindex 3a2699eeb4..692c80471c 100644--- a/server/core/initializers/checker-after-init.ts+++ b/server/core/initializers/checker-after-init.ts@@ -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) {