xljiulang преди 4 години
родител
ревизия
994099a7d2
променени са 2 файла, в които са добавени 11 реда и са изтрити 1 реда
  1. 1 1
      FastGithub.ReverseProxy/ReverseProxyMiddleware.cs
  2. 10 0
      FastGithub/appsettings.json

+ 1 - 1
FastGithub.ReverseProxy/ReverseProxyMiddleware.cs

@@ -80,7 +80,7 @@ namespace FastGithub.ReverseProxy
 
             var baseUri = new Uri(defaultValue);
             var result = new Uri(baseUri, destination).ToString();
-            this.logger.LogInformation($"[{defaultValue}->{result}]");
+            this.logger.LogInformation($"[{defaultValue} <-> {result}]");
             return result;
         }
 

+ 10 - 0
FastGithub/appsettings.json

@@ -66,6 +66,16 @@
           "ContentType": "text/plain;charset=utf-8",
           "ContentValue": "阻断的请求"
         }
+      },
+      "lh*.googleusercontent.com": {
+        "Response": {
+          "StatusCode": 404
+        }
+      },
+      "www.google.com": {
+        "Response": {
+          "StatusCode": 404
+        }
       }
     }
   },