From ee64902a067923713ad1e0c178347da5d00bda0e Mon Sep 17 00:00:00 2001 From: Kevin Whitaker Date: Sat, 3 Jan 2026 15:48:16 -0500 Subject: [PATCH] add redis and cache --- CloudronManifest.json | 4 +++- start.sh | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CloudronManifest.json b/CloudronManifest.json index 21ab42a..8bbb673 100644 --- a/CloudronManifest.json +++ b/CloudronManifest.json @@ -3,6 +3,7 @@ "version": "0.1.0", "healthCheckPath": "/", "httpPort": 3000, + "memoryLimit": 1048576000, "addons": { "localstorage": {}, "postgresql": {}, @@ -10,7 +11,8 @@ "loginRedirectUri": "/api/oauth/openid", "logoutRedirectUri": "/", "tokenSignatureAlgorithm": "RS256" - } + }, + "redis": { "noPassword": true } }, "manifestVersion": 2 } diff --git a/start.sh b/start.sh index d15cfed..d84cbec 100755 --- a/start.sh +++ b/start.sh @@ -2,10 +2,10 @@ set -eu mkdir -p /app/data/library /app/data/config /app/data/assets /app/data/resources -mkdir -p /tmp/vite-temp /tmp/vite +mkdir -p /tmp/vite-temp /tmp/vite /tmp/cache # ensure that data directory is owned by 'cloudron' user -chown -R cloudron:cloudron /app/data /tmp/vite-temp /tmp/vite +chown -R cloudron:cloudron /app/data /tmp/vite-temp /tmp/vite /tmp/cache cd /app/data @@ -30,6 +30,9 @@ export ROMM_BASE_PATH=/app/data export UV_PYTHON_INSTALL_DIR=/app/code/uv export DEV_HTTPS=false export __VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS=${CLOUDRON_APP_DOMAIN} +export XDG_CACHE_HOME=/tmp/cache +export REDIS_HOST=${CLOUDRON_REDIS_HOST} +export REDIS_PORT=${CLOUDRON_REDIS_PORT} echo "==> Starting supervisor" exec /usr/bin/supervisord --configuration /etc/supervisor/supervisord.conf --nodaemon -i Romm