diff --git a/README.md b/README.md index 6e28daa..cb01077 100644 --- a/README.md +++ b/README.md @@ -45,3 +45,4 @@ The following environment variables can be set at run-time or when extending thi | PHP_MAX_EXECUTION_TIME | php setting max_execution_time | 90 | | PHP_POST_MAX_SIZE | php setting post_max_size | 100M | | PHP_UPLOAD_MAX_FILE_SIZE | php setting upload_max_file_size | 100M | +| PHP_ALLOW_URL_FOPEN | php setting allow_url_fopen | Off | \ No newline at end of file diff --git a/src/Dockerfile b/src/Dockerfile index aebe081..52e6f0d 100644 --- a/src/Dockerfile +++ b/src/Dockerfile @@ -18,7 +18,8 @@ ENV DEBIAN_FRONTEND=noninteractive \ PHP_MEMORY_LIMIT=256M \ PHP_MAX_EXECUTION_TIME=90 \ PHP_POST_MAX_SIZE=100M \ - PHP_UPLOAD_MAX_FILE_SIZE=100M + PHP_UPLOAD_MAX_FILE_SIZE=100M \ + PHP_ALLOW_URL_FOPEN=Off COPY --from=composer:2 /usr/bin/composer /usr/bin/composer COPY php/ondrej_ubuntu_php.gpg /etc/apt/trusted.gpg.d/ondrej_ubuntu_php.gpg diff --git a/src/Dockerfile-unit b/src/Dockerfile-unit index 1a68bba..fab390a 100644 --- a/src/Dockerfile-unit +++ b/src/Dockerfile-unit @@ -46,7 +46,8 @@ ENV DEBIAN_FRONTEND=noninteractive \ PHP_MEMORY_LIMIT=256M \ PHP_MAX_EXECUTION_TIME=90 \ PHP_POST_MAX_SIZE=100M \ - PHP_UPLOAD_MAX_FILE_SIZE=100M + PHP_UPLOAD_MAX_FILE_SIZE=100M \ + PHP_ALLOW_URL_FOPEN=Off COPY --from=composer:2 /usr/bin/composer /usr/bin/composer COPY php/ondrej_ubuntu_php.gpg /etc/apt/trusted.gpg.d/ondrej_ubuntu_php.gpg diff --git a/src/fpm/pool.d/www.conf b/src/fpm/pool.d/www.conf index ec089f4..84b69bc 100644 --- a/src/fpm/pool.d/www.conf +++ b/src/fpm/pool.d/www.conf @@ -522,4 +522,7 @@ php_admin_value[max_execution_time] = ${PHP_MAX_EXECUTION_TIME} ; Upload settings php_admin_value[post_max_size] = ${PHP_POST_MAX_SIZE} -php_admin_value[upload_max_filesize] = ${PHP_UPLOAD_MAX_FILE_SIZE} \ No newline at end of file +php_admin_value[upload_max_filesize] = ${PHP_UPLOAD_MAX_FILE_SIZE} + +; Allow remote file access settings +php_admin_value[allow_url_fopen] = ${PHP_ALLOW_URL_FOPEN} \ No newline at end of file