@@ -41,12 +41,12 @@ sudo snap install aliyundrive-webdav
4141aarch64/arm/mipsel/x86_64/i686 等架构的版本,可以下载后使用 opkg 安装,以 nanopi r4s 为例:
4242
4343``` bash
44- wget https://github.com/messense/aliyundrive-webdav/releases/download/v2.2.2 /aliyundrive-webdav_2.2.2 -1_aarch64_generic.ipk
45- wget https://github.com/messense/aliyundrive-webdav/releases/download/v2.2.2 /luci-app-aliyundrive-webdav_2.2.2_all .ipk
46- wget https://github.com/messense/aliyundrive-webdav/releases/download/v2.2.2 /luci-i18n-aliyundrive-webdav-zh-cn_2.2.2 -1_all.ipk
47- opkg install aliyundrive-webdav_2.2.2 -1_aarch64_generic.ipk
48- opkg install luci-app-aliyundrive-webdav_2.2.2_all .ipk
49- opkg install luci-i18n-aliyundrive-webdav-zh-cn_2.2.2 -1_all.ipk
44+ wget https://github.com/messense/aliyundrive-webdav/releases/download/v2.3.0 /aliyundrive-webdav_2.3.0 -1_aarch64_generic.ipk
45+ wget https://github.com/messense/aliyundrive-webdav/releases/download/v2.3.0 /luci-app-aliyundrive-webdav_2.3.0_all .ipk
46+ wget https://github.com/messense/aliyundrive-webdav/releases/download/v2.3.0 /luci-i18n-aliyundrive-webdav-zh-cn_2.3.0 -1_all.ipk
47+ opkg install aliyundrive-webdav_2.3.0 -1_aarch64_generic.ipk
48+ opkg install luci-app-aliyundrive-webdav_2.3.0_all .ipk
49+ opkg install luci-i18n-aliyundrive-webdav-zh-cn_2.3.0 -1_all.ipk
5050```
5151
5252其它 CPU 架构的路由器可在 [ GitHub Releases] ( https://github.com/messense/aliyundrive-webdav/releases ) 页面中查找对应的架构的主程序 ipk 文件下载安装, 常见
@@ -143,32 +143,122 @@ Commands:
143143 help Print this message or the help of the given subcommand(s)
144144
145145Options:
146- --host <HOST> Listen host [env: HOST=] [default: 0.0.0.0]
147- -p, --port <PORT> Listen port [env: PORT=] [default: 8080]
148- --client-id <CLIENT_ID> Aliyun drive client_id [env: CLIENT_ID=]
149- --client-secret <CLIENT_SECRET> Aliyun drive client_secret [env: CLIENT_SECRET=]
150- -r, --refresh-token <REFRESH_TOKEN> Aliyun drive refresh token [env: REFRESH_TOKEN=]
151- -U, --auth-user <AUTH_USER> WebDAV authentication username [env: WEBDAV_AUTH_USER=]
152- -W, --auth-password <AUTH_PASSWORD> WebDAV authentication password [env: WEBDAV_AUTH_PASSWORD=]
153- -I, --auto-index Automatically generate index.html
154- -S, --read-buffer-size <READ_BUFFER_SIZE> Read/download buffer size in bytes, defaults to 10MB [default: 10485760]
155- --upload-buffer-size <UPLOAD_BUFFER_SIZE> Upload buffer size in bytes, defaults to 16MB [default: 16777216]
156- --cache-size <CACHE_SIZE> Directory entries cache size [default: 1000]
157- --cache-ttl <CACHE_TTL> Directory entries cache expiration time in seconds [default: 600]
158- --root <ROOT> Root directory path [default: /]
159- -w, --workdir <WORKDIR> Working directory, refresh_token will be stored in there if specified
160- --no-trash Delete file permanently instead of trashing it
161- --read-only Enable read only mode
162- --tls-cert <TLS_CERT> TLS certificate file path [env: TLS_CERT=]
163- --tls-key <TLS_KEY> TLS private key file path [env: TLS_KEY=]
164- --strip-prefix <STRIP_PREFIX> Prefix to be stripped off when handling request [env: WEBDAV_STRIP_PREFIX=]
165- --debug Enable debug log
166- --no-self-upgrade Disable self auto upgrade
167- --skip-upload-same-size Skip uploading same size file
168- --prefer-http-download Prefer downloading using HTTP protocol
169- --redirect Enable 302 redirect when possible
170- -h, --help Print help
171- -V, --version Print version
146+ --host <HOST>
147+ Listen host
148+
149+ [env: HOST=]
150+ [default: 0.0.0.0]
151+
152+ -p, --port <PORT>
153+ Listen port
154+
155+ [env: PORT=]
156+ [default: 8080]
157+
158+ --client-id <CLIENT_ID>
159+ Aliyun drive client_id
160+
161+ [env: CLIENT_ID=]
162+
163+ --client-secret <CLIENT_SECRET>
164+ Aliyun drive client_secret
165+
166+ [env: CLIENT_SECRET=]
167+
168+ --drive-type <DRIVE_TYPE>
169+ Aliyun drive type
170+
171+ Possible values:
172+ - resource: Resource drive
173+ - backup: Backup drive
174+
175+ -r, --refresh-token <REFRESH_TOKEN>
176+ Aliyun drive refresh token
177+
178+ [env: REFRESH_TOKEN=]
179+
180+ -U, --auth-user <AUTH_USER>
181+ WebDAV authentication username
182+
183+ [env: WEBDAV_AUTH_USER=]
184+
185+ -W, --auth-password <AUTH_PASSWORD>
186+ WebDAV authentication password
187+
188+ [env: WEBDAV_AUTH_PASSWORD=]
189+
190+ -I, --auto-index
191+ Automatically generate index.html
192+
193+ -S, --read-buffer-size <READ_BUFFER_SIZE>
194+ Read/download buffer size in bytes, defaults to 10MB
195+
196+ [default: 10485760]
197+
198+ --upload-buffer-size <UPLOAD_BUFFER_SIZE>
199+ Upload buffer size in bytes, defaults to 16MB
200+
201+ [default: 16777216]
202+
203+ --cache-size <CACHE_SIZE>
204+ Directory entries cache size
205+
206+ [default: 1000]
207+
208+ --cache-ttl <CACHE_TTL>
209+ Directory entries cache expiration time in seconds
210+
211+ [default: 600]
212+
213+ --root <ROOT>
214+ Root directory path
215+
216+ [default: /]
217+
218+ -w, --workdir <WORKDIR>
219+ Working directory, refresh_token will be stored in there if specified
220+
221+ --no-trash
222+ Delete file permanently instead of trashing it
223+
224+ --read-only
225+ Enable read only mode
226+
227+ --tls-cert <TLS_CERT>
228+ TLS certificate file path
229+
230+ [env: TLS_CERT=]
231+
232+ --tls-key <TLS_KEY>
233+ TLS private key file path
234+
235+ [env: TLS_KEY=]
236+
237+ --strip-prefix <STRIP_PREFIX>
238+ Prefix to be stripped off when handling request
239+
240+ [env: WEBDAV_STRIP_PREFIX=]
241+
242+ --debug
243+ Enable debug log
244+
245+ --no-self-upgrade
246+ Disable self auto upgrade
247+
248+ --skip-upload-same-size
249+ Skip uploading same size file
250+
251+ --prefer-http-download
252+ Prefer downloading using HTTP protocol
253+
254+ --redirect
255+ Enable 302 redirect when possible
256+
257+ -h, --help
258+ Print help (see a summary with '-h')
259+
260+ -V, --version
261+ Print version
172262` ` `
173263
174264> **Note**
0 commit comments