add redis and cache

This commit is contained in:
2026-01-03 15:48:16 -05:00
parent 7cce873fc6
commit ee64902a06
2 changed files with 8 additions and 3 deletions

View File

@@ -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
}

View File

@@ -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