From 434bcfdc56bacf4974ac2ec1b8fedab538cfc192 Mon Sep 17 00:00:00 2001 From: Jonathan Barrow Date: Sun, 9 Oct 2022 22:08:33 -0400 Subject: [PATCH] Added high memory usage warning wen both s3 and redis are disabled --- src/config-manager.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/config-manager.js b/src/config-manager.js index b1d7547..cbd0e14 100644 --- a/src/config-manager.js +++ b/src/config-manager.js @@ -343,6 +343,10 @@ function configure() { } } + if (disabledFeatures.redis) { + logger.warn('Both s3 and Redis are disabled. Large CDN files will use the in-memory cache, which may result in high memory use. Please enable s3 if you\'re running a production server.'); + } + logger.warn(`s3 file storage disabled. Using disk-based file storage. Please ensure cdn_base config or PN_ACT_CONFIG_CDN_BASE env variable is set to point to this server with the subdomain being ${config.cdn_subdomain}`); }