reids preparation

This commit is contained in:
Chris
2025-05-18 12:31:50 +02:00
parent b7f5b09011
commit 54b237a522
4 changed files with 16 additions and 1 deletions

View File

@@ -5,6 +5,8 @@ RUN apk add --no-cache bash socat file ffmpeg
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
WORKDIR /app/public
RUN install-php-extensions redis
# Add php.ini
ADD configs/php.ini /usr/local/etc/php/php.ini

View File

@@ -25,6 +25,7 @@ _buildConfig() {
echo "<?php"
echo "define('URL', '${URL:-}');"
echo "define('TITLE', '${TITLE:-PictShare}');"
echo "define('REDIS_CACHING', '${REDIS_CACHING:-true}');"
echo "define('ALLOWED_SUBNET', '${ALLOWED_SUBNET:-}');"
echo "define('CONTENTCONTROLLERS', '${CONTENTCONTROLLERS:-}');"
echo "define('MASTER_DELETE_CODE', '${MASTER_DELETE_CODE:-}');"
@@ -56,6 +57,9 @@ _buildConfig() {
echo "define('ALLOWED_DOMAINS', '${ALLOWED_DOMAINS:-}');"
echo "define('SPLIT_DATA_DIR', ${SPLIT_DATA_DIR:-false});"
echo "define('LOG_VIEWS', ${LOG_VIEWS:-false});"
echo "define('REDIS_CACHING', ${REDIS_CACHING:-true});"
echo "define('REDIS_SERVER', '${REDIS_SERVER:-localhost}');"
echo "define('REDIS_PORT', ${REDIS_PORT:-6379});"
}