Browse Source

(sing-box)add geosite-geolocation-!cn

77-QiQi 1 year ago
parent
commit
c69c3a11ad
1 changed files with 19 additions and 1 deletions
  1. 19 1
      config/appprofile.example.php

+ 19 - 1
config/appprofile.example.php

@@ -84,9 +84,13 @@ $_ENV['SingBox_Config'] = [
                 'outbound' => 'any',
                 'server' => 'local',
             ],
+            [
+                'rule_set' => 'geosite-geolocation-!cn',
+                'server' => 'cloudflare',
+            ],
             [
                 'rule_set' => 'geosite-cn',
-                'server' => 'local',
+                'server' => 'fakeip',
             ],
         ],
         'final' => 'cloudflare',
@@ -149,6 +153,12 @@ $_ENV['SingBox_Config'] = [
                 'protocol' => 'dns',
                 'action' => 'hijack-dns',
             ],
+            [
+                'rule_set' => [
+                    'geosite-geolocation-!cn',
+                ],
+                'outbound' => 'select',
+            ],
             [
                 'rule_set' => [
                     'geosite-cn',
@@ -183,6 +193,14 @@ $_ENV['SingBox_Config'] = [
                 'download_detour' => 'auto',
                 'update_interval' => '1d',
             ],
+            [
+                'tag' => 'geosite-geolocation-!cn',
+                'type' => 'remote',
+                'format' => 'binary',
+                'url' => 'https://' . $_ENV['jsdelivr_url'] . '/gh/SagerNet/sing-geosite@rule-set/geosite-geolocation-!cn.srs',
+                'download_detour' => 'auto',
+                'update_interval' => '1d',
+            ],
         ],
         'final' => 'select',
         'auto_detect_interface' => true,