File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,9 +38,9 @@ RUN set -ex; \
3838
3939# set recommended PHP.ini settings
4040# see https://secure.php.net/manual/en/opcache.installation.php
41+ ENV MAX_EXECUTION_TIME 600
4142ENV MEMORY_LIMIT 512M
4243ENV UPLOAD_LIMIT 2048K
43- ENV MAX_EXECUTION_TIME 600
4444RUN set -ex; \
4545 \
4646 { \
@@ -58,7 +58,6 @@ RUN set -ex; \
5858 \
5959 { \
6060 echo 'allow_url_fopen=Off'; \
61- echo 'expose_php=Off'; \
6261 echo 'max_execution_time=${MAX_EXECUTION_TIME}'; \
6362 echo 'max_input_vars=10000'; \
6463 echo 'memory_limit=${MEMORY_LIMIT}'; \
Original file line number Diff line number Diff line change @@ -40,9 +40,9 @@ RUN set -ex; \
4040
4141# set recommended PHP.ini settings
4242# see https://secure.php.net/manual/en/opcache.installation.php
43+ ENV MAX_EXECUTION_TIME 600
4344ENV MEMORY_LIMIT 512M
4445ENV UPLOAD_LIMIT 2048K
45- ENV MAX_EXECUTION_TIME 600
4646RUN set -ex; \
4747 \
4848 { \
@@ -60,7 +60,6 @@ RUN set -ex; \
6060 \
6161 { \
6262 echo 'allow_url_fopen=Off'; \
63- echo 'expose_php=Off'; \
6463 echo 'max_execution_time=${MAX_EXECUTION_TIME}'; \
6564 echo 'max_input_vars=10000'; \
6665 echo 'memory_limit=${MEMORY_LIMIT}'; \
Original file line number Diff line number Diff line change @@ -40,9 +40,9 @@ RUN set -ex; \
4040
4141# set recommended PHP.ini settings
4242# see https://secure.php.net/manual/en/opcache.installation.php
43+ ENV MAX_EXECUTION_TIME 600
4344ENV MEMORY_LIMIT 512M
4445ENV UPLOAD_LIMIT 2048K
45- ENV MAX_EXECUTION_TIME 600
4646RUN set -ex; \
4747 \
4848 { \
@@ -60,7 +60,6 @@ RUN set -ex; \
6060 \
6161 { \
6262 echo 'allow_url_fopen=Off' ; \
63- echo 'expose_php=Off' ; \
6463 echo 'max_execution_time=${MAX_EXECUTION_TIME}' ; \
6564 echo 'max_input_vars=10000' ; \
6665 echo 'memory_limit=${MEMORY_LIMIT}' ; \
Original file line number Diff line number Diff line change 1313 fi
1414fi
1515
16+ if [ ! -z " ${HIDE_PHP_VERSION} " ]; then
17+ echo " PHP version is now hidden."
18+ echo -e ' expose_php = Off\n' > $PHP_INI_DIR /conf.d/phpmyadmin-hide-php-version.ini
19+ fi
20+
1621if [ ! -z " ${PMA_CONFIG_BASE64} " ]; then
1722 echo " Adding the custom config.inc.php from base64."
1823 echo " ${PMA_CONFIG_BASE64} " | base64 -d > /etc/phpmyadmin/config.inc.php
Original file line number Diff line number Diff line change 1313 fi
1414fi
1515
16+ if [ ! -z " ${HIDE_PHP_VERSION} " ]; then
17+ echo " PHP version is now hidden."
18+ echo -e ' expose_php = Off\n' > $PHP_INI_DIR /conf.d/phpmyadmin-hide-php-version.ini
19+ fi
20+
1621if [ ! -z " ${PMA_CONFIG_BASE64} " ]; then
1722 echo " Adding the custom config.inc.php from base64."
1823 echo " ${PMA_CONFIG_BASE64} " | base64 -d > /etc/phpmyadmin/config.inc.php
Original file line number Diff line number Diff line change @@ -38,9 +38,9 @@ RUN set -ex; \
3838
3939# set recommended PHP.ini settings
4040# see https://secure.php.net/manual/en/opcache.installation.php
41+ ENV MAX_EXECUTION_TIME 600
4142ENV MEMORY_LIMIT 512M
4243ENV UPLOAD_LIMIT 2048K
43- ENV MAX_EXECUTION_TIME 600
4444RUN set -ex; \
4545 \
4646 { \
@@ -58,7 +58,6 @@ RUN set -ex; \
5858 \
5959 { \
6060 echo 'allow_url_fopen=Off' ; \
61- echo 'expose_php=Off' ; \
6261 echo 'max_execution_time=${MAX_EXECUTION_TIME}' ; \
6362 echo 'max_input_vars=10000' ; \
6463 echo 'memory_limit=${MEMORY_LIMIT}' ; \
Original file line number Diff line number Diff line change 1313 fi
1414fi
1515
16+ if [ ! -z " ${HIDE_PHP_VERSION} " ]; then
17+ echo " PHP version is now hidden."
18+ echo -e ' expose_php = Off\n' > $PHP_INI_DIR /conf.d/phpmyadmin-hide-php-version.ini
19+ fi
20+
1621if [ ! -z " ${PMA_CONFIG_BASE64} " ]; then
1722 echo " Adding the custom config.inc.php from base64."
1823 echo " ${PMA_CONFIG_BASE64} " | base64 -d > /etc/phpmyadmin/config.inc.php
Original file line number Diff line number Diff line change @@ -40,9 +40,9 @@ RUN set -ex; \
4040
4141# set recommended PHP.ini settings
4242# see https://secure.php.net/manual/en/opcache.installation.php
43+ ENV MAX_EXECUTION_TIME 600
4344ENV MEMORY_LIMIT 512M
4445ENV UPLOAD_LIMIT 2048K
45- ENV MAX_EXECUTION_TIME 600
4646RUN set -ex; \
4747 \
4848 { \
@@ -60,7 +60,6 @@ RUN set -ex; \
6060 \
6161 { \
6262 echo 'allow_url_fopen=Off' ; \
63- echo 'expose_php=Off' ; \
6463 echo 'max_execution_time=${MAX_EXECUTION_TIME}' ; \
6564 echo 'max_input_vars=10000' ; \
6665 echo 'memory_limit=${MEMORY_LIMIT}' ; \
Original file line number Diff line number Diff line change 1313 fi
1414fi
1515
16+ if [ ! -z " ${HIDE_PHP_VERSION} " ]; then
17+ echo " PHP version is now hidden."
18+ echo -e ' expose_php = Off\n' > $PHP_INI_DIR /conf.d/phpmyadmin-hide-php-version.ini
19+ fi
20+
1621if [ ! -z " ${PMA_CONFIG_BASE64} " ]; then
1722 echo " Adding the custom config.inc.php from base64."
1823 echo " ${PMA_CONFIG_BASE64} " | base64 -d > /etc/phpmyadmin/config.inc.php
You can’t perform that action at this time.
0 commit comments