Merge pull request #362 from FirmlyReality/master
fix a bug in nginx_config.sh
This commit is contained in:
commit
2e250b5cb2
|
@ -23,7 +23,7 @@ sed -i "s/%NGINX_PORT/${NGINX_PORT}/g" ${NGINX_CONF}/nginx_docklet.conf
|
||||||
sed -i "s/%PROXY_PORT/${PROXY_PORT}/g" ${NGINX_CONF}/nginx_docklet.conf
|
sed -i "s/%PROXY_PORT/${PROXY_PORT}/g" ${NGINX_CONF}/nginx_docklet.conf
|
||||||
sed -i "s/%WEB_PORT/${WEB_PORT}/g" ${NGINX_CONF}/nginx_docklet.conf
|
sed -i "s/%WEB_PORT/${WEB_PORT}/g" ${NGINX_CONF}/nginx_docklet.conf
|
||||||
|
|
||||||
if [ "${NGINX_PORT}" != "80" ]
|
if [ "${NGINX_PORT}" != "80" ] && [ "${NGINX_PORT}" != "443" ]
|
||||||
then
|
then
|
||||||
sed -i "s/\$host/\$host:\$server_port/g" ${NGINX_CONF}/nginx_docklet.conf
|
sed -i "s/\$host/\$host:\$server_port/g" ${NGINX_CONF}/nginx_docklet.conf
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue