File tree 9 files changed +25
-10
lines changed
9 files changed +25
-10
lines changed Original file line number Diff line number Diff line change @@ -38,9 +38,9 @@ RUN set -ex; \
38
38
39
39
# set recommended PHP.ini settings
40
40
# see https://secure.php.net/manual/en/opcache.installation.php
41
+ ENV MAX_EXECUTION_TIME 600
41
42
ENV MEMORY_LIMIT 512M
42
43
ENV UPLOAD_LIMIT 2048K
43
- ENV MAX_EXECUTION_TIME 600
44
44
RUN set -ex; \
45
45
\
46
46
{ \
@@ -58,7 +58,6 @@ RUN set -ex; \
58
58
\
59
59
{ \
60
60
echo 'allow_url_fopen=Off'; \
61
- echo 'expose_php=Off'; \
62
61
echo 'max_execution_time=${MAX_EXECUTION_TIME}'; \
63
62
echo 'max_input_vars=10000'; \
64
63
echo 'memory_limit=${MEMORY_LIMIT}'; \
Original file line number Diff line number Diff line change @@ -40,9 +40,9 @@ RUN set -ex; \
40
40
41
41
# set recommended PHP.ini settings
42
42
# see https://secure.php.net/manual/en/opcache.installation.php
43
+ ENV MAX_EXECUTION_TIME 600
43
44
ENV MEMORY_LIMIT 512M
44
45
ENV UPLOAD_LIMIT 2048K
45
- ENV MAX_EXECUTION_TIME 600
46
46
RUN set -ex; \
47
47
\
48
48
{ \
@@ -60,7 +60,6 @@ RUN set -ex; \
60
60
\
61
61
{ \
62
62
echo 'allow_url_fopen=Off'; \
63
- echo 'expose_php=Off'; \
64
63
echo 'max_execution_time=${MAX_EXECUTION_TIME}'; \
65
64
echo 'max_input_vars=10000'; \
66
65
echo 'memory_limit=${MEMORY_LIMIT}'; \
Original file line number Diff line number Diff line change @@ -40,9 +40,9 @@ RUN set -ex; \
40
40
41
41
# set recommended PHP.ini settings
42
42
# see https://secure.php.net/manual/en/opcache.installation.php
43
+ ENV MAX_EXECUTION_TIME 600
43
44
ENV MEMORY_LIMIT 512M
44
45
ENV UPLOAD_LIMIT 2048K
45
- ENV MAX_EXECUTION_TIME 600
46
46
RUN set -ex; \
47
47
\
48
48
{ \
@@ -60,7 +60,6 @@ RUN set -ex; \
60
60
\
61
61
{ \
62
62
echo 'allow_url_fopen=Off' ; \
63
- echo 'expose_php=Off' ; \
64
63
echo 'max_execution_time=${MAX_EXECUTION_TIME}' ; \
65
64
echo 'max_input_vars=10000' ; \
66
65
echo 'memory_limit=${MEMORY_LIMIT}' ; \
Original file line number Diff line number Diff line change 13
13
fi
14
14
fi
15
15
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
+
16
21
if [ ! -z " ${PMA_CONFIG_BASE64} " ]; then
17
22
echo " Adding the custom config.inc.php from base64."
18
23
echo " ${PMA_CONFIG_BASE64} " | base64 -d > /etc/phpmyadmin/config.inc.php
Original file line number Diff line number Diff line change 13
13
fi
14
14
fi
15
15
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
+
16
21
if [ ! -z " ${PMA_CONFIG_BASE64} " ]; then
17
22
echo " Adding the custom config.inc.php from base64."
18
23
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; \
38
38
39
39
# set recommended PHP.ini settings
40
40
# see https://secure.php.net/manual/en/opcache.installation.php
41
+ ENV MAX_EXECUTION_TIME 600
41
42
ENV MEMORY_LIMIT 512M
42
43
ENV UPLOAD_LIMIT 2048K
43
- ENV MAX_EXECUTION_TIME 600
44
44
RUN set -ex; \
45
45
\
46
46
{ \
@@ -58,7 +58,6 @@ RUN set -ex; \
58
58
\
59
59
{ \
60
60
echo 'allow_url_fopen=Off' ; \
61
- echo 'expose_php=Off' ; \
62
61
echo 'max_execution_time=${MAX_EXECUTION_TIME}' ; \
63
62
echo 'max_input_vars=10000' ; \
64
63
echo 'memory_limit=${MEMORY_LIMIT}' ; \
Original file line number Diff line number Diff line change 13
13
fi
14
14
fi
15
15
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
+
16
21
if [ ! -z " ${PMA_CONFIG_BASE64} " ]; then
17
22
echo " Adding the custom config.inc.php from base64."
18
23
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; \
40
40
41
41
# set recommended PHP.ini settings
42
42
# see https://secure.php.net/manual/en/opcache.installation.php
43
+ ENV MAX_EXECUTION_TIME 600
43
44
ENV MEMORY_LIMIT 512M
44
45
ENV UPLOAD_LIMIT 2048K
45
- ENV MAX_EXECUTION_TIME 600
46
46
RUN set -ex; \
47
47
\
48
48
{ \
@@ -60,7 +60,6 @@ RUN set -ex; \
60
60
\
61
61
{ \
62
62
echo 'allow_url_fopen=Off' ; \
63
- echo 'expose_php=Off' ; \
64
63
echo 'max_execution_time=${MAX_EXECUTION_TIME}' ; \
65
64
echo 'max_input_vars=10000' ; \
66
65
echo 'memory_limit=${MEMORY_LIMIT}' ; \
Original file line number Diff line number Diff line change 13
13
fi
14
14
fi
15
15
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
+
16
21
if [ ! -z " ${PMA_CONFIG_BASE64} " ]; then
17
22
echo " Adding the custom config.inc.php from base64."
18
23
echo " ${PMA_CONFIG_BASE64} " | base64 -d > /etc/phpmyadmin/config.inc.php
You can’t perform that action at this time.
0 commit comments