From 2534882296ce9ee09ac02edb504c89bb16aa1ece Mon Sep 17 00:00:00 2001 From: amass Date: Wed, 8 Jan 2025 23:58:52 +0800 Subject: [PATCH] remove speedtest. --- Server/conf/nginx.conf | 36 ------------------------------------ Server/conf/server.conf | 18 ------------------ 2 files changed, 54 deletions(-) diff --git a/Server/conf/nginx.conf b/Server/conf/nginx.conf index 4beffc9..22ea6d4 100644 --- a/Server/conf/nginx.conf +++ b/Server/conf/nginx.conf @@ -52,10 +52,6 @@ http { server 127.0.0.1:8085; } - upstream speed_test { - server 127.0.0.1:8087; - } - upstream frp_pve { server 127.0.0.1:8088; } @@ -420,22 +416,6 @@ http { location /resources { root amass_blog; } - location /speedtest { - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header x-wiz-real-ip $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header Host $http_host; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_pass http://speed_test; - } - location /backend { - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header x-wiz-real-ip $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header Host $http_host; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_pass http://speed_test; - } location / { rewrite ^(.*)$ https://amass.fun$1 permanent; } @@ -447,22 +427,6 @@ http { location /resources { root amass_blog; } - location /speedtest { - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header x-wiz-real-ip $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header Host $http_host; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_pass http://speed_test; - } - location /backend { - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header x-wiz-real-ip $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header Host $http_host; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_pass http://speed_test; - } location / { rewrite ^(.*)$ https://mirror.amass.fun$1 permanent; } diff --git a/Server/conf/server.conf b/Server/conf/server.conf index 37ef462..f83bdf0 100644 --- a/Server/conf/server.conf +++ b/Server/conf/server.conf @@ -91,24 +91,6 @@ location ~ /notify.*$ { proxy_pass http://local; } -location /speedtest { - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header x-wiz-real-ip $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header Host $http_host; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_pass http://speed_test; -} - -location /backend { - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header x-wiz-real-ip $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header Host $http_host; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_pass http://speed_test; -} - location /Younger/ChatRoom { proxy_pass http://local;