Explorar el Código

Update config_server.json

Clarence Gui hace 5 años
padre
commit
85c8546de7
Se han modificado 1 ficheros con 50 adiciones y 80 borrados
  1. 50 80
      VMess-Websocket-TLS/config_server.json

+ 50 - 80
VMess-Websocket-TLS/config_server.json

@@ -1,91 +1,61 @@
 {
-    "outbound": {
-        "streamSettings": null,
-        "tag": null,
-        "protocol": "freedom",
-        "mux": null,
-        "settings": null
-    },
     "log": {
-        "access": "/var/log/v2ray/access.log",
-        "loglevel": "error",
-        "error": "/var/log/v2ray/error.log"
+        "loglevel": "warning"
     },
-    "inboundDetour": null,
-    "inbound": {
-        "streamSettings": {
-            "network": "ws",
-            "kcpSettings": null,
-            "wsSettings": {
-                "headers": {
-                    "host": "example.domain"
-                },
-                "path": ""
-            },
-            "tcpSettings": null,
-            "tlsSettings": {
-                "certificates": [
+    "routing": {
+        "domainStrategy": "AsIs",
+        "rules": [
+            {
+                "type": "field",
+                "ip": [
+                    "geoip:private"
+                ],
+                "outboundTag": "block"
+            }
+        ]
+    },
+    "inbounds": [
+        {
+            "listen": "0.0.0.0",
+            "port": 1234,
+            "protocol": "vmess",
+            "settings": {
+                "clients": [
                     {
-                        "keyFile": "/path/to/example.domain.key",
-                        "certificateFile": "/path/to/example.domain/fullchain.cer"
+                        "id": "",
+                        "alterId": 4
                     }
-                ]
+                ],
+                "disableInsecureEncryption": false
             },
-            "security": "tls"
-        },
-        "listen": null,
-        "protocol": "vmess",
-        "port": 443,
-        "settings": {
-            "ip": null,
-            "udp": true,
-            "clients": [
-                {
-                    "alterId": 100,
-                    "security": "aes-128-gcm",
-                    "id": "0cdf8a45-303d-4fed-9780-29aa7f54175e"
+            "streamSettings": {
+                "network": "ws",
+                "wsSettings": {
+                    "path": "",
+                    "headers": {
+                        "Host": "example.domain"
+                    }
+                },
+                "security": "tls",
+                "tlsSettings": {
+                    "certificates": [
+                        {
+                            "certificateFile": "/path/to/certificate.crt",
+                            "keyFile": "/path/to/key.key"
+                        }
+                    ]
                 }
-            ],
-            "auth": null
+            }
         }
-    },
-    "outboundDetour": [
+    ],
+    "outbounds": [
+        {
+            "protocol": "freedom",
+            "tag": "direct"
+        },
         {
-            "tag": "blocked",
             "protocol": "blackhole",
-            "settings": null
+            "tag": "block"
         }
-    ],
-    "routing": {
-        "strategy": "rules",
-        "settings": {
-            "rules": [
-                {
-                    "ip": [
-                        "0.0.0.0/8",
-                        "10.0.0.0/8",
-                        "100.64.0.0/10",
-                        "127.0.0.0/8",
-                        "169.254.0.0/16",
-                        "172.16.0.0/12",
-                        "192.0.0.0/24",
-                        "192.0.2.0/24",
-                        "192.168.0.0/16",
-                        "198.18.0.0/15",
-                        "198.51.100.0/24",
-                        "203.0.113.0/24",
-                        "::1/128",
-                        "fc00::/7",
-                        "fe80::/10"
-                    ],
-                    "domain": null,
-                    "type": "field",
-                    "port": null,
-                    "outboundTag": "blocked"
-                }
-            ],
-            "domainStrategy": null
-        }
-    },
-    "dns": null
-}
+    ]
+}