github.com/Asutorufa/yuhaiin@v0.3.6-0.20240502055049-7984da7023a0/docs/node.md (about)

     1  # node json config
     2  
     3  ```json
     4  {
     5     // maybe deprecated in future, move to bbolt cache
     6     "tcp":{ // global tcp using node, copy from nodes while changing
     7        "hash":"606f65",
     8        "name":"default",
     9        "group":"default",
    10        "origin":"manual",
    11        "protocols":[
    12           {
    13              "direct":{}
    14           }
    15        ]
    16     },
    17     // maybe deprecated in future, move to bbolt cache
    18     "udp":{// global udp using node, copy from nodes while changing
    19        "hash":"606f65",
    20        "name":"default",
    21        "group":"default",
    22        "origin":"manual",
    23        "protocols":[
    24           {
    25              "direct":{}
    26           }
    27        ]
    28     },
    29  
    30  
    31     "manager":{
    32        "group_nodes_map":{ // group-node:node-hash mapping
    33           "default":{ // group name
    34              "node_hash_map":{
    35                 "default":"606f65", // node-name:node-hash map
    36                 "warp":"eb7653"
    37              }
    38           }
    39        },
    40  
    41  
    42        "nodes":{// all nodes
    43           "606f65":{ // node hash
    44              "hash":"606f65",
    45              "name":"default",
    46              "group":"default",
    47              "origin":"manual",
    48              "protocols":[
    49                 {
    50                    "direct":{}
    51                 }
    52              ]
    53           },
    54           "eb7653":{
    55              "hash":"eb7653",
    56              "name":"warp",
    57              "group":"default",
    58              "origin":"manual",
    59              "protocols":[
    60                 {
    61                    "simple":{
    62                       "host":"127.0.0.1",
    63                       "port":40000,
    64                       "packet_conn_direct":true
    65                    }
    66                 },
    67                 {
    68                    "socks5":{
    69                       "hostname":"127.0.0.1"
    70                    }
    71                 }
    72              ]
    73           }
    74        },
    75  
    76  
    77        "tags":{ // tags config
    78  
    79           "warp":{ // tag name
    80              "tag":"warp",
    81              "hash":[ // specify node/tag for current tag
    82                 "eb7653"
    83              ]
    84           },
    85  
    86           
    87           "fast": {
    88              "tag": "fast",
    89              "hash": [
    90                  "warp", // another tag name, can't set to self
    91                  "606f65" // node hash
    92              ]
    93           }
    94        }
    95     }
    96  }
    97  ```