add redis and cache
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
7
start.sh
7
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
|
||||
|
||||
Reference in New Issue
Block a user