forked from ReturnFI/Hysteria2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.json
83 lines (83 loc) · 1.7 KB
/
config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"listen": ":$port",
"tls": {
"cert": "/path/to/ca.crt",
"key": "/path/to/ca.key",
"insecure": true,
"pinSHA256": "$sha256"
},
"obfs": {
"type": "salamander",
"salamander": {
"password": "$obfspassword"
}
},
"auth": {
"type": "command",
"command": "/etc/hysteria/core/scripts/hysteria2/user.sh"
},
"quic": {
"initStreamReceiveWindow": 8388608,
"maxStreamReceiveWindow": 8388608,
"initConnReceiveWindow": 20971520,
"maxConnReceiveWindow": 20971520,
"maxIdleTimeout": "20s",
"maxIncomingStreams": 1024,
"disablePathMTUDiscovery": false
},
"bandwidth": {
"up": "1 gbps",
"down": "1 gbps"
},
"ignoreClientBandwidth": false,
"disableUDP": false,
"udpIdleTimeout": "20s",
"resolver": {
"type": "tls",
"tcp": {
"addr": "8.8.8.8:53",
"timeout": "4s"
},
"udp": {
"addr": "8.8.4.4:53",
"timeout": "4s"
},
"tls": {
"addr": "1.1.1.1:853",
"timeout": "10s",
"sni": "cloudflare-dns.com",
"insecure": false
},
"https": {
"addr": "1.1.1.1:443",
"timeout": "10s",
"sni": "cloudflare-dns.com",
"insecure": false
}
},
"outbounds": [
{
"name": "v4",
"type": "direct",
"direct": {
"mode": 4,
"bindDevice": "$networkdef"
}
}
],
"acl": {
"inline": [
"reject(geosite:ir)",
"reject(geoip:ir)",
"reject(geosite:category-ads-all)",
"reject(geoip:private)",
"reject(geosite:google@ads)"
],
"geoip": "/etc/hysteria/geoip.dat",
"geosite": "/etc/hysteria/geosite.dat"
},
"trafficStats": {
"listen": "127.0.0.1:25413",
"secret": "$UUID"
}
}