-
Notifications
You must be signed in to change notification settings - Fork 262
/
daemon.yaml
188 lines (180 loc) · 3.73 KB
/
daemon.yaml
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
console: true
verbose: true
pprof-port: -1
jaeger: "foo"
service-name: "bar"
metrics: ":8000"
aliveTime: 0s
gcInterval: 1m0s
workHome: /tmp/dragonfly/dfdaemon/
cacheDir: /var/cache/dragonfly/
logDir: /var/log/dragonfly/
pluginDir: /tmp/dragonfly/dfdaemon/plugins/
dataDir: /var/lib/dragonfly/
keepStorage: false
scheduler:
manager:
enable: false
netAddrs:
- type: tcp
addr: 127.0.0.1:65003
refreshInterval: 5m
seedPeer:
enable: false
type: strong
clusterID: 2
keepAlive:
interval: 10s
netAddrs:
- type: tcp
addr: 127.0.0.1:8002
scheduleTimeout: 0
disableAutoBackSource: true
host:
hostname: d7y.io
advertiseIP: 0.0.0.0
location: 0.0.0.0
idc: d7y
download:
calculateDigest: true
defaultPattern: p2p
pieceDownloadTimeout: 30s
totalRateLimit: 1024Mi
perPeerRateLimit: 512Mi
downloadGRPC:
security:
insecure: true
caCert: ./testdata/certs/ca.crt
cert: ./testdata/certs/sca.crt
key: ./testdata/certs/sca.key
tlsVerify: true
tlsConfig: null
unixListen:
socket: /tmp/dfdaemon.sock
peerGRPC:
security:
insecure: true
caCert: ./testdata/certs/ca.crt
cert: ./testdata/certs/sca.crt
key: ./testdata/certs/sca.key
tlsVerify: true
tlsConfig: null
tcpListen:
listen: 0.0.0.0
port: 65000
transportOption:
dialTimeout: 1s
keepAlive: 1s
maxIdleConns: 1
idleConnTimeout: 1s
responseHeaderTimeout: 1s
tlsHandshakeTimeout: 1s
expectContinueTimeout: 1s
getPiecesMaxRetry: 1
prefetch: true
watchdogTimeout: 1s
concurrent:
thresholdSize: 1
thresholdSpeed: 1
goroutineCount: 1
initBackoff: 1
maxBackoff: 1
maxAttempts: 1
upload:
rateLimit: 1024Mi
security:
insecure: true
caCert: ./testdata/certs/ca.crt
cert: ./testdata/certs/sca.crt
key: ./testdata/certs/sca.key
tlsVerify: true
tcpListen:
listen: 0.0.0.0
port: 65002
objectStorage:
enable: true
filter: Expires&Signature&ns
maxReplicas: 3
security:
insecure: true
caCert: ./testdata/certs/ca.crt
cert: ./testdata/certs/sca.crt
key: ./testdata/certs/sca.key
tlsVerify: true
tcpListen:
listen: 0.0.0.0
port: 65004
storage:
diskGCThreshold: 60m
diskGCThresholdPercent: 0.6
dataPath: /tmp/storage/data
taskExpireTime: 3m0s
strategy: io.d7y.storage.v2.simple
multiplex: true
health:
path: "/health"
proxy:
basicAuth:
username: "foo"
password: "bar"
defaultFilter: "baz"
defaultTag: "tag"
defaultApplication: "application"
maxConcurrency: 1
security:
insecure: true
caCert: ./testdata/certs/ca.crt
cert: ./testdata/certs/sca.crt
key: ./testdata/certs/sca.key
tlsVerify: true
tlsConfig: null
tcpListen:
listen: 0.0.0.0
port: 65001
registryMirror:
url: https://index.docker.io
insecure: true
direct: false
useProxies: true
dynamic: true
extraRegistryMirrors:
- url: https://index.docker.io
insecure: true
direct: true
useProxies: true
dynamic: true
proxies:
- regx: blobs/sha256.*
useHTTPS: false
direct: false
redirect: d7y.io
hijackHTTPS:
cert: ./testdata/certs/sca.crt
key: ./testdata/certs/sca.key
hosts:
- regx: mirror.aliyuncs.com:443
insecure: true
whiteList:
- host: "foo"
regx: "blobs/sha256.*"
ports:
- "1000"
- "2000"
dumpHTTPContent: true
reload:
interval: 3m0s
security:
autoIssueCert: true
caCert: -----BEGIN CERTIFICATE-----
tlsVerify: true
tlsPolicy: force
certSpec:
dnsNames:
- foo
ipAddresses:
- 0.0.0.0
validityPeriod: 1s
network:
enableIPv6: true
announcer:
schedulerInterval: 1s