mirror of https://github.com/mack-a/v2ray-agent
feat(xray): 添加minVersion
parent
a5f333a13f
commit
0720df0be6
|
@ -64,6 +64,7 @@
|
||||||
- 不支持非root账户
|
- 不支持非root账户
|
||||||
- 现在脚本进入相对稳定的时期,如果有功能不完善的地方,请提issues。
|
- 现在脚本进入相对稳定的时期,如果有功能不完善的地方,请提issues。
|
||||||
- **脚本默认屏蔽BT**。
|
- **脚本默认屏蔽BT**。
|
||||||
|
- **中间的版本号升级意味可能不兼容之前安装的内容,如果不是追新用户或者必须升级的版本请谨慎升级。** 例如 2.2.\*,不兼容2.1.\*
|
||||||
|
|
||||||
## 脚本目录
|
## 脚本目录
|
||||||
- v2ray-core 【**/etc/v2ray-agent/v2ray**】
|
- v2ray-core 【**/etc/v2ray-agent/v2ray**】
|
||||||
|
|
49
install.sh
49
install.sh
|
@ -492,36 +492,12 @@ cat << EOF > /etc/nginx/conf.d/alone.conf
|
||||||
server {
|
server {
|
||||||
listen 31300;
|
listen 31300;
|
||||||
server_name ${domain};
|
server_name ${domain};
|
||||||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains;preload" always;
|
|
||||||
add_header Content-Security-Policy "default-src 'self' *.google-analytics.com *.swiftypecdn.com *.swiftype.com *.gstatic.com *.disqus.com *.disquscdn.com *.google.com *.facebook.com *.pippio.com *.crwdcntrl.net *.bluekai.com *.exelator.com *.narrative.io disqus.com 'unsafe-inline'; img-src * data: blob:";
|
|
||||||
add_header X-XSS-Protection "1; mode=block"
|
|
||||||
add_header Cache-Control 'no-cache';
|
|
||||||
add_header X-Content-Type-Options nosniff;
|
|
||||||
root /usr/share/nginx/html;
|
|
||||||
# location ~ /.well-known {allow all;}
|
|
||||||
# location /test {return 200 'fjkvymb6len';}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
server_name gcp2.v2ray-agent.com;
|
|
||||||
return 301 https://gcp2.v2ray-agent.com$request_uri;
|
|
||||||
}
|
|
||||||
server {
|
|
||||||
listen 31300;
|
|
||||||
server_name gcp2.v2ray-agent.com;
|
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
location / {
|
location / {
|
||||||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains;preload" always;
|
add_header Strict-Transport-Security "max-age=63072000" always;
|
||||||
add_header Content-Security-Policy "default-src 'self' *.google-analytics.com *.swiftypecdn.com *.swiftype.com *.gstatic.com *.disqus.com *.disquscdn.com *.google.com *.facebook.com *.pippio.com *.crwdcntrl.net *.bluekai.com *.exelator.com *.narrative.io disqus.com 'unsafe-inline'; img-src * data: blob:";
|
|
||||||
add_header X-XSS-Protection "1; mode=block"
|
|
||||||
add_header Cache-Control 'no-cache';
|
|
||||||
add_header X-Content-Type-Options nosniff;
|
|
||||||
}
|
}
|
||||||
# location ~ /.well-known {allow all;}
|
# location ~ /.well-known {allow all;}
|
||||||
# location /test {return 200 'fjkvymb6len';}
|
# location /test {return 200 'fjkvymb6len';}
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
@ -1565,8 +1541,8 @@ EOF
|
||||||
"outbounds": [
|
"outbounds": [
|
||||||
{
|
{
|
||||||
"protocol": "blackhole",
|
"protocol": "blackhole",
|
||||||
"settings": {}
|
"settings": {},
|
||||||
"tag": "blocked",
|
"tag": "blocked"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1589,12 +1565,12 @@ EOF
|
||||||
EOF
|
EOF
|
||||||
# VLESS_TCP_TLS/XTLS
|
# VLESS_TCP_TLS/XTLS
|
||||||
# 回落nginx
|
# 回落nginx
|
||||||
local fallbacksList='{"dest":31296,"xver":0}'
|
local fallbacksList='{"dest":31300,"xver":0}'
|
||||||
|
|
||||||
if [[ -z `echo ${selectCustomInstallType}|grep 4` || "$1" = "all" ]]
|
if [[ ! -z `echo ${selectCustomInstallType}|grep 4` || "$1" = "all" ]]
|
||||||
then
|
then
|
||||||
# 回落trojan-go
|
# 回落trojan-go
|
||||||
fallbacksList='{"dest":31300,"xver":0}'
|
fallbacksList='{"dest":31296,"xver":0}'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# VLESS_WS_TLS
|
# VLESS_WS_TLS
|
||||||
|
@ -1892,12 +1868,12 @@ EOF
|
||||||
EOF
|
EOF
|
||||||
# VLESS_TCP_TLS/XTLS
|
# VLESS_TCP_TLS/XTLS
|
||||||
# 回落nginx
|
# 回落nginx
|
||||||
local fallbacksList='{"dest":31296,"xver":0}'
|
local fallbacksList='{"dest":31300,"xver":0}'
|
||||||
|
|
||||||
if [[ -z `echo ${selectCustomInstallType}|grep 4` || "$1" = "all" ]]
|
if [[ ! -z `echo ${selectCustomInstallType}|grep 4` || "$1" = "all" ]]
|
||||||
then
|
then
|
||||||
# 回落trojan-go
|
# 回落trojan-go
|
||||||
fallbacksList='{"dest":31300,"xver":0}'
|
fallbacksList='{"dest":31296,"xver":0}'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# VLESS_WS_TLS
|
# VLESS_WS_TLS
|
||||||
|
@ -2040,6 +2016,7 @@ EOF
|
||||||
"network": "tcp",
|
"network": "tcp",
|
||||||
"security": "xtls",
|
"security": "xtls",
|
||||||
"xtlsSettings": {
|
"xtlsSettings": {
|
||||||
|
"minVersion": "1.2",
|
||||||
"alpn": [
|
"alpn": [
|
||||||
"http/1.1"
|
"http/1.1"
|
||||||
],
|
],
|
||||||
|
@ -3036,7 +3013,7 @@ menu(){
|
||||||
cd
|
cd
|
||||||
echoContent red "\n=============================================================="
|
echoContent red "\n=============================================================="
|
||||||
echoContent green "作者:mack-a"
|
echoContent green "作者:mack-a"
|
||||||
echoContent green "当前版本:v2.2.1"
|
echoContent green "当前版本:v2.2.2"
|
||||||
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
|
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
|
||||||
echoContent green "描述:七合一共存脚本"
|
echoContent green "描述:七合一共存脚本"
|
||||||
echoContent red "=============================================================="
|
echoContent red "=============================================================="
|
||||||
|
|
Loading…
Reference in New Issue