mirror of
https://github.com/bitnami/containers.git
synced 2026-02-22 16:17:21 +08:00
Merge branch 'customize_nginx' of github.com:bitnami/bitnami-docker-nginx into customize_nginx
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
########################
|
||||
|
||||
Reference in New Issue
Block a user