Fix Redis configuration and remove Redis addon temporarily

This commit is contained in:
Andreas Dueren
2025-07-14 21:31:09 -06:00
parent eab30de088
commit 675c6fa1c8
2 changed files with 9 additions and 5 deletions

View File

@@ -10,8 +10,7 @@
"addons": { "addons": {
"postgresql": {}, "postgresql": {},
"localstorage": {}, "localstorage": {},
"sendmail": {}, "sendmail": {}
"redis": {}
}, },
"manifestVersion": 2, "manifestVersion": 2,
"website": "https://docmost.com", "website": "https://docmost.com",

View File

@@ -26,13 +26,18 @@ APP_SECRET=$(cat /app/data/app_secret)
export NODE_ENV=production export NODE_ENV=production
export APP_URL="${CLOUDRON_APP_ORIGIN}" export APP_URL="${CLOUDRON_APP_ORIGIN}"
export APP_SECRET="${APP_SECRET}" export APP_SECRET="${APP_SECRET}"
export PORT=3000 export PORT=3001
# Database configuration # Database configuration
export DATABASE_URL="${CLOUDRON_POSTGRESQL_URL}" export DATABASE_URL="${CLOUDRON_POSTGRESQL_URL}"
# Redis configuration # Redis configuration (optional)
export REDIS_URL="${CLOUDRON_REDIS_URL}" if [ -n "${CLOUDRON_REDIS_URL:-}" ]; then
export REDIS_URL="${CLOUDRON_REDIS_URL}"
echo "=> Redis configured"
else
echo "=> Redis not configured - collaborative features may be limited"
fi
# Email configuration # Email configuration
export MAIL_DRIVER=smtp export MAIL_DRIVER=smtp