feat(脚本): 修改nginx监听端口为内部地址

pull/534/merge
mack-a 2021-05-27 17:59:23 +08:00
parent 1e30e63a23
commit cf86535f05
1 changed files with 3 additions and 3 deletions

View File

@ -601,7 +601,7 @@ updateRedirectNginxConf() {
return 301 https://${domain}$request_uri;
}
server {
listen 31300;
listen 127.0.0.1:31300;
server_name _;
return 403;
}
@ -609,7 +609,7 @@ EOF
if [[ "${selectCoreType}" == "1" ]] && [[ -n $(echo ${selectCustomInstallType} | grep 5) || -z ${selectCustomInstallType} ]]; then
cat <<EOF >>/etc/nginx/conf.d/alone.conf
server {
listen 31302 http2;
listen 127.0.0.1:31302 http2;
server_name ${domain};
root /usr/share/nginx/html;
location /${currentPath}grpc {
@ -621,7 +621,7 @@ EOF
cat <<EOF >>/etc/nginx/conf.d/alone.conf
server {
listen 31300;
listen 127.0.0.1:31300;
server_name ${domain};
root /usr/share/nginx/html;
location /s/ {