Skip to content

Commit

Permalink
fix NGINX_SSL_PORT replace
Browse files Browse the repository at this point in the history
  • Loading branch information
thsrite committed May 27, 2024
1 parent be7c8f3 commit 27cac31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion start_server
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ fi

# 替换http、https端口
sed -i "s/8091/${NGINX_PORT}/g" "/etc/nginx/conf.d/includes/http.conf"
sed -i "s/8095/${NGINX_SSL_PORT}/g" "/etc/nginx/conf.d/includes/https.conf"
if [ -n "${NGINX_SSL_PORT}" ]; then
sed -i "s/8095/${NGINX_SSL_PORT}/g" "/etc/nginx/conf.d/includes/https.conf"
fi

# SSL开启
if [ "${SSL_ENABLE}" = "true" ]; then
Expand Down

0 comments on commit 27cac31

Please sign in to comment.