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
|
{
"listen": "0.0.0.0:{{ hysteria_port | default('4435') }}",
"tls": {
"cert": "/certs/server-cert.pem",
"key": "/certs/server-key.pem"
},
"disableUDP": false,
"bandwidth": {
"up": "1 gbps",
"down": "1 gbps"
},
"auth": {
"type": "userpass",
"userpass": {}
},
"obfs": {
"type": "salamander",
"salamander": {
"password": "{{ salamander_password }}"
}
},
"resolver": {
"type": "udp",
"udp": {
{% if not lookup('vars', 'disable_dns', default=false) %}
"addr": "{{ ansible_all_ipv4_addresses[0] }}"
{% else %}
"addr": "9.9.9.9"
{% endif %}
}
},
"outbounds": [{
"name": "direct_out",
"type": "direct",
"direct": {
"mode": "auto"
}}],
"trafficStats": {
"listen": "127.0.0.1:9999",
"secret": "secret"
},
"masquerade": {
"type": "string",
"string": {
"content": "Hello World",
"headers": {
"content-type": "text/plain"
},
"statusCode": 200
}
}
}
|