Skip to content

Commit

Permalink
Support NGINX_WEBROOT_SUFFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
tiredofit committed Nov 10, 2023
1 parent 0d299d1 commit c2ba43c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion install/etc/cont-init.d/20-php-fpm
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,16 @@ if [ ! -f "/tmp/.container/container-restart" ] ; then
phpfpm_configure_extensions
if [[ "${PHP_FPM_CONTAINER_MODE,,}" == *"nginx"* ]] ; then phpfpm_configure_nginx ; fi
if [[ "${PHP_FPM_CONTAINER_MODE,,}" == *"php-fpm"* ]] ; then phpfpm_create_default_page ; fi
if var_true "${NGINX_ENABLE_APPLICATION_CONFIGURATION}"; then phpfpm_configure_site_default ; fi
if var_true "${NGINX_ENABLE_APPLICATION_CONFIGURATION}"; then
if [ -n "${NGINX_WEBROOT_SUFFIX}" ]; then
_nginx_webroot_original="${NGINX_WEBROOT}"
NGINX_WEBROOT=${NGINX_WEBROOT}${NGINX_WEBROOT_SUFFIX}
fi
phpfpm_configure_site_default
if [ -n "${NGINX_WEBROOT_SUFFIX}" ]; then
NGINX_WEBROOT=${_nginx_webroot_original}
fi
fi
if [ "${NGINX_AUTHENTICATION_TYPE,,}" = "llng" ] ; then phpfpm_configure_authentication ; fi
phpfpm_configure_logging
phpfpm_post_init
Expand Down

0 comments on commit c2ba43c

Please sign in to comment.