|
1 | | -[debug] |
2 | | -# enabled = true |
3 | | -# web_server = "127.0.0.1" |
4 | | -# web_port = 3001 |
5 | | - |
6 | | -[carbon] |
7 | | -# address = "localhost:2003" |
8 | | - |
9 | | -[logging] |
10 | | -# level = "debug" |
11 | | - |
12 | 1 | [agent] |
13 | | -# local = false |
14 | | -# metrics_enabled = true |
15 | | -# metrics_interval = 60 |
16 | | -# stat_enabled = true |
17 | | -# stat_job_interval = 60 |
| 2 | +local = false |
| 3 | +snapshot_interval = 30 |
| 4 | +snapshot_path = "snapshots/agent_snapshot.bin" |
18 | 5 |
|
19 | 6 | [xray] |
20 | | -# xray_config_path = "dev/xray-config.json" |
| 7 | +enabled = true |
| 8 | +xray_config_path = "/etc/xray/config.json" |
21 | 9 |
|
22 | | -[zmq] |
23 | | -# sub_endpoint = "tcp://localhost:3000" |
24 | | -# pub_endpoint = "tcp://*:3000" |
25 | | - |
26 | | -[node] |
27 | | -# env = "dev" |
28 | | -# hostname = "<define in env or config>" |
29 | | -# default_interface = "<autodetected>" |
30 | | -# ipv4 = "<autodetected>" |
31 | | -# uuid = "9658b391-01cb-4031-a3f5-6cbdd749bcff" |
32 | | -# label = "🏴☠️🏴☠️🏴☠️ dev" |
| 10 | +[wg] |
| 11 | +enabled = true |
| 12 | +port = 51820 |
| 13 | +interface = "wg0" |
| 14 | +# privkey и address обычно лучше через env, но можно и тут |
33 | 15 |
|
34 | 16 | [h2] |
35 | | -#enabled = true |
36 | | -#path = "path/to/h2.yaml" |
| 17 | +enabled = false |
| 18 | +path = "etc/frkn/h2.yaml" |
37 | 19 |
|
38 | | -[wg] |
39 | | -#enabled = true |
40 | | -#port = 51599 |
41 | | -#network= "10.10.0.0/16" |
42 | | -#address = "10.10.0.1" |
43 | | -#interface = "utun7" |
44 | | -#privkey = "6KVWBZmCBNt1t5hI6KXXf4Eo4mlGNKAxETeRgcXNK0Q=" |
45 | | -#pubkey = "Yhg+gj8TqQ3/10a/Ae+Tv1iPin/HigmOnhRkMj7k/hw=" |
46 | | -#dns = ["1.1.1.1"] |
| 20 | +[mtproto] |
| 21 | +enabled = true |
| 22 | +port = 8443 |
| 23 | +secret = "dd00112233445566778899aabbccddeeff" |
| 24 | + |
| 25 | +[metrics] |
| 26 | +enabled = true |
| 27 | +publisher = "tcp://api-server-ip:5555" |
| 28 | +interval = 10 |
47 | 29 |
|
48 | 30 | [api] |
49 | | -# address = "127.0.0.1" |
50 | | -# port = 3005 |
51 | | -# endpoint = "http://localhost:3005" |
52 | | -# node_health_check_timeout = 60 |
53 | | -# user_limit_check_interval = 60 |
54 | | -# user_reactivate_interval = 60 |
55 | | -# token = "supetsecrettoken" |
56 | | -# user_limit_mb = 1000 |
57 | | -# healthcheck_interval = 60 |
| 31 | +endpoint = "https://api.frkn.org" |
| 32 | +token = "your-super-secret-api-token" |
| 33 | + |
| 34 | +[logging] |
| 35 | +level = "warn" |
| 36 | + |
| 37 | +[zmq] |
| 38 | +endpoint = "tcp://api-server-ip:3000" |
0 commit comments