84 lines
1.7 KiB
JSON
84 lines
1.7 KiB
JSON
{
|
|
"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": 60,
|
|
"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"
|
|
}
|
|
}
|