Browse Source

Add clash_api to default sing-box config base

Tindy X 1 year ago
parent
commit
04ac98725c
2 changed files with 20 additions and 2 deletions
  1. 10 1
      base/base/all_base.tpl
  2. 10 1
      base/base/singbox.json

+ 10 - 1
base/base/all_base.tpl

@@ -378,7 +378,16 @@ enhanced-mode-by-rule = true
         "rules": [],
         "auto_detect_interface": true
     },
-    "experimental": {}
+    "experimental": {
+        "cache_file": {
+            "enabled": true,
+            "store_fakeip": true
+        },
+        "clash_api": {
+            "external_controller": "127.0.0.1:9090",
+            "external_ui": "dashboard"
+        }
+    }
 }
 
 {% endif %}

+ 10 - 1
base/base/singbox.json

@@ -100,5 +100,14 @@
         "rules": [],
         "auto_detect_interface": true
     },
-    "experimental": {}
+    "experimental": {
+        "cache_file": {
+            "enabled": true,
+            "store_fakeip": true
+        },
+        "clash_api": {
+            "external_controller": "127.0.0.1:9090",
+            "external_ui": "dashboard"
+        }
+    }
 }