-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.yml
More file actions
62 lines (55 loc) · 1.09 KB
/
config.example.yml
File metadata and controls
62 lines (55 loc) · 1.09 KB
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
listen: 127.0.0.1:8787
backend:
kind: windivert
dns:
listen: 127.0.0.1:53
fake_ipv4_range: 198.18.0.0/16
fake_ipv6_range: fd00:198:18::/48
record_ttl_secs: 60
windivert:
layer: network
tun:
name: anymirror-tun
mtu: 1500
stack: smoltcp
platform_dns: auto
dns_hijack:
- any:53
- tcp://any:53
observability:
enable: false
telemetry:
service_name: anymirror
otlp_endpoint: http://127.0.0.1:4317
plugins:
enabled: false
workers: 4
includes:
- match:
prefix: https://downloads.example.com/packages/
action:
type: mirror
upstream:
url: https://mirror.example.net/packages/
- match:
hosts:
- api.example.com
- files.example.com
scheme: https
action:
type: direct
- match:
exact: https://api.example.com/health
action:
type: respond
status: 200
body:
json:
ok: true
source: anymirror
- match:
host: telemetry.example.com
action:
type: reject
status: 451
message: blocked by policy