logger.warn('services.csp-logger configuration has been renamed to csp.report_uri. Please update your configuration file.')
}
+ checkSecretsConfig()
checkEmailConfig()
checkNSFWPolicyConfig()
checkLocalRedundancyConfig()
// ---------------------------------------------------------------------------
+function checkSecretsConfig () {
+ if (!CONFIG.SECRETS.PEERTUBE) {
+ throw new Error('secrets.peertube is missing in config. Generate one using `openssl rand -hex 32`')
+ }
+}
+
function checkEmailConfig () {
if (!isEmailEnabled()) {
if (CONFIG.SIGNUP.ENABLED && CONFIG.SIGNUP.REQUIRES_EMAIL_VERIFICATION) {
'Object storage bucket prefixes should be set to different values when the same bucket is used for both types of video.'
)
}
+
+ if (!CONFIG.OBJECT_STORAGE.UPLOAD_ACL.PUBLIC) {
+ throw new Error('object_storage.upload_acl.public must be set')
+ }
+
+ if (!CONFIG.OBJECT_STORAGE.UPLOAD_ACL.PRIVATE) {
+ throw new Error('object_storage.upload_acl.private must be set')
+ }
}
}