0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-04-21 19:16:09 +02:00

Implement essential php.ini configuration via ENV

Signed-off-by: Alexander Sosna <alexander.sosna@credativ.de>
This commit is contained in:
Alexander Sosna 2020-08-24 15:45:08 +02:00
parent 3a3219b192
commit b1ef8e2e97

View file

@ -43,6 +43,13 @@ file_env() {
unset "$fileVar" unset "$fileVar"
} }
# Get essential PHP_INI configuration
file_env PHP_INI_MEMORY_LIMIT 512M
# Set essential PHP_INI configuration
# It is important to set essential variables like 'memory-limit' before the first start to premvent OOM during installation and statup.
echo "memory_limit=${PHP_INI_MEMORY_LIMIT}" > /usr/local/etc/php/conf.d/memory-limit.ini;
if expr "$1" : "apache" 1>/dev/null; then if expr "$1" : "apache" 1>/dev/null; then
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
a2disconf remoteip a2disconf remoteip