mirror of https://github.com/mack-a/v2ray-agent
feat(脚本): 修改nginx监听端口为内部地址
parent
1e30e63a23
commit
cf86535f05
|
@ -601,7 +601,7 @@ updateRedirectNginxConf() {
|
||||||
return 301 https://${domain}$request_uri;
|
return 301 https://${domain}$request_uri;
|
||||||
}
|
}
|
||||||
server {
|
server {
|
||||||
listen 31300;
|
listen 127.0.0.1:31300;
|
||||||
server_name _;
|
server_name _;
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -609,7 +609,7 @@ EOF
|
||||||
if [[ "${selectCoreType}" == "1" ]] && [[ -n $(echo ${selectCustomInstallType} | grep 5) || -z ${selectCustomInstallType} ]]; then
|
if [[ "${selectCoreType}" == "1" ]] && [[ -n $(echo ${selectCustomInstallType} | grep 5) || -z ${selectCustomInstallType} ]]; then
|
||||||
cat <<EOF >>/etc/nginx/conf.d/alone.conf
|
cat <<EOF >>/etc/nginx/conf.d/alone.conf
|
||||||
server {
|
server {
|
||||||
listen 31302 http2;
|
listen 127.0.0.1:31302 http2;
|
||||||
server_name ${domain};
|
server_name ${domain};
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
location /${currentPath}grpc {
|
location /${currentPath}grpc {
|
||||||
|
@ -621,7 +621,7 @@ EOF
|
||||||
|
|
||||||
cat <<EOF >>/etc/nginx/conf.d/alone.conf
|
cat <<EOF >>/etc/nginx/conf.d/alone.conf
|
||||||
server {
|
server {
|
||||||
listen 31300;
|
listen 127.0.0.1:31300;
|
||||||
server_name ${domain};
|
server_name ${domain};
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
location /s/ {
|
location /s/ {
|
||||||
|
|
Loading…
Reference in New Issue