Merge branch 'customize_nginx' of github.com:bitnami/bitnami-docker-nginx into customize_nginx

This commit is contained in:
juan131
2019-05-01 12:31:49 +02:00

View File

@@ -111,7 +111,7 @@ nginx_config_http_port() {
local http_port=${1:-8080}
debug "Configuring default HTTP port..."
# TODO: find an appropriate NGINX parser to avoid 'sed calls'
sed -i -r "s/(listen\s+)[0-9]{1,5};/\1${http_port};/g" ${NGINX_CONFDIR}/nginx.conf
sed -i -E "s/(listen\s+)[0-9]{1,5};/\1${http_port};/g" ${NGINX_CONFDIR}/nginx.conf
}
########################