Browse Source

Merge branch 'master' of https://github.com/KiriKira/vTemplate

kirikira 7 years ago
parent
commit
14496a36f0
2 changed files with 28 additions and 3 deletions
  1. 14 1
      websocket+Nginx+TLS/config_client.json
  2. 14 2
      websocket+Nginx+TLS/config_server.json

+ 14 - 1
websocket+Nginx+TLS/config_client.json

@@ -29,6 +29,8 @@
             "users": [
               {
                 "id": "97c0ec9c-dc4e-11e7-9296-cec278b6b50a",
+                //"level"字段与"policy"字段中的"levels"字段中的对应,默认值:0,注:需要core≥3.1
+                "level": 0,
                 "alterId": 0,
                 "security": "aes-128-cfb"
               }
@@ -73,6 +75,17 @@
       "timeout": 300
     }
   },
+  // 注"policy"字段需要core≥3.1
+  "policy": {
+    "levels": {
+      "0": {
+        "uplinkOnly": 0,
+        "downlinkOnly": 0,
+        "connIdle": 150,
+        "handshake": 4
+      }
+    }
+  },
   "routing": {
     "settings": {
       "rules": [
@@ -129,4 +142,4 @@
     },
     "strategy": "rules"
   }
-}
+}

+ 14 - 2
websocket+Nginx+TLS/config_server.json

@@ -4,7 +4,18 @@
     "error": "/var/log/v2ray/error.log", 
     //可能取值 "debug" "info" "warning" "error" 其中"debug"记录的数据最多,"error"记录的最少 "none"表示不记录任何内容 默认值为"warning"
     "loglevel": "debug" 
-  }, 
+  },
+  //注"policy"字段需要core≥3.1
+  "policy": {
+    "levels": {
+      "0": {
+        "uplinkOnly": 0,
+        "downlinkOnly": 0,
+        "connIdle": 150,
+        "handshake": 4
+      }
+    }
+  },
   "inbound": {
     //默认值为"0.0.0.0"
     "listen": "127.0.0.1", 
@@ -13,7 +24,8 @@
     "settings": {
       "clients": [
         {
-          "id": "7f43b638-dc47-11e7-9296-cec278b6b50a", 
+          "id": "7f43b638-dc47-11e7-9296-cec278b6b50a",
+          //"level"字段与"policy"字段中的"levels"字段中的对应,默认值:0,注:需要core≥3.1
           "level": 0, 
           "alterId": 64
         }