Switch to bing.com
被攻击的太厉害,换成bing,但并不推荐跳转大厂的网址。
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
### 使用说明
|
||||
* 可以直接输入命令:`idleleo` 管理脚本。
|
||||
* 访问域名 302 跳转至 https://www.idleleo.com/helloworld (了解配置过程可自行修改)。
|
||||
* 访问域名 302 跳转至 www.bing.com (了解配置过程可自行修改)。
|
||||
* 阻止 HTTP 直接访问服务器 IP 。
|
||||
* 使用来自 [@DuckSoft](https://github.com/DuckSoft) 的分享链接[提案](https://github.com/XTLS/Xray-core/issues/91) (beta),支持 Qv2ray、V2rayN、V2rayNG。
|
||||
* 使用来自 [XTLS](https://github.com/XTLS/Xray-core/issues/158) 项目的提案,遵循 [UUIDv5](https://tools.ietf.org/html/rfc4122#section-4.3) 标准,可以将自定义字符串映射至 VLESS UUID 。
|
||||
|
||||
+5
-5
@@ -32,7 +32,7 @@ OK="${Green}[OK]${Font}"
|
||||
Error="${Red}[错误]${Font}"
|
||||
Warning="${Red}[警告]${Font}"
|
||||
|
||||
shell_version="1.8.2.1"
|
||||
shell_version="1.8.2.2"
|
||||
shell_mode="未安装"
|
||||
tls_mode="None"
|
||||
ws_grpc_mode="None"
|
||||
@@ -540,7 +540,7 @@ modify_nginx_origin_conf() {
|
||||
sed -i "s/^\( *\)worker_connections 1024;.*/\1worker_connections 4096;/" ${nginx_dir}/conf/nginx.conf
|
||||
sed -i '$i include /etc/idleleo/conf/nginx/*.conf;' ${nginx_dir}/conf/nginx.conf
|
||||
sed -i "/http\( *\){/a \\\tserver_tokens off;" ${nginx_dir}/conf/nginx.conf
|
||||
sed -i "/error_page.*504/i \\\t\\tif (\$host = '${local_ip}') {\\n\\t\\t\\treturn 302 https:\/\/www.idleleo.com\/helloworld;\\n\\t\\t}" ${nginx_dir}/conf/nginx.conf
|
||||
sed -i "/error_page.*504/i \\\t\\tif (\$host = '${local_ip}') {\\n\\t\\t\\treturn 302 https:\/\/www.bing.com;\\n\\t\\t}" ${nginx_dir}/conf/nginx.conf
|
||||
}
|
||||
|
||||
modify_nginx_port() {
|
||||
@@ -1181,7 +1181,7 @@ nginx_conf_add() {
|
||||
server_name serveraddr.com;
|
||||
index index.html index.htm;
|
||||
root /400.html;
|
||||
error_page 400 https://www.idleleo.com/helloworld;
|
||||
error_page 400 https://www.bing.com;
|
||||
# Config for 0-RTT in TLSv1.3
|
||||
ssl_early_data on;
|
||||
ssl_stapling on;
|
||||
@@ -1223,7 +1223,7 @@ nginx_conf_add() {
|
||||
|
||||
location /
|
||||
{
|
||||
return 302 https://www.idleleo.com/helloworld;
|
||||
return 302 https://www.bing.com;
|
||||
}
|
||||
}
|
||||
server {
|
||||
@@ -1255,7 +1255,7 @@ nginx_conf_add_xtls() {
|
||||
add_header Strict-Transport-Security "max-age=63072000" always;
|
||||
location /
|
||||
{
|
||||
return 302 https://www.idleleo.com/helloworld;
|
||||
return 302 https://www.bing.com;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user