Merge pull request #2698 from aaly00/master
Add DOWNGRADE_OPENSSL_TLS_AND_SECLEVEL Option
This commit is contained in:
commit
3544f943c0
@ -248,6 +248,7 @@ services:
|
|||||||
- INSTALL_WKHTMLTOPDF=${PHP_FPM_INSTALL_WKHTMLTOPDF}
|
- INSTALL_WKHTMLTOPDF=${PHP_FPM_INSTALL_WKHTMLTOPDF}
|
||||||
- INSTALL_XHPROF=${PHP_FPM_INSTALL_XHPROF}
|
- INSTALL_XHPROF=${PHP_FPM_INSTALL_XHPROF}
|
||||||
- INSTALL_XMLRPC=${PHP_FPM_INSTALL_XMLRPC}
|
- INSTALL_XMLRPC=${PHP_FPM_INSTALL_XMLRPC}
|
||||||
|
- DOWNGRADE_OPENSSL_TLS_AND_SECLEVEL=${PHP_DOWNGRADE_OPENSSL_TLS_AND_SECLEVEL}
|
||||||
- PUID=${PHP_FPM_PUID}
|
- PUID=${PHP_FPM_PUID}
|
||||||
- PGID=${PHP_FPM_PGID}
|
- PGID=${PHP_FPM_PGID}
|
||||||
- LOCALE=${PHP_FPM_DEFAULT_LOCALE}
|
- LOCALE=${PHP_FPM_DEFAULT_LOCALE}
|
||||||
|
@ -921,6 +921,18 @@ RUN if [ ${INSTALL_XMLRPC} = true ]; then \
|
|||||||
docker-php-ext-install xmlrpc \
|
docker-php-ext-install xmlrpc \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# Downgrade Openssl:
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
|
ARG DOWNGRADE_OPENSSL_TLS_AND_SECLEVEL=false
|
||||||
|
|
||||||
|
RUN if [ ${DOWNGRADE_OPENSSL_TLS_AND_SECLEVEL} = true ]; then \
|
||||||
|
sed -i 's,^\(MinProtocol[ ]*=\).*,\1'TLSv1.2',g' /etc/ssl/openssl.cnf \
|
||||||
|
&& \
|
||||||
|
sed -i 's,^\(CipherString[ ]*=\).*,\1'DEFAULT@SECLEVEL=1',g' /etc/ssl/openssl.cnf\
|
||||||
|
;fi
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# Check PHP version:
|
# Check PHP version:
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user