Help me to become a full-time open-source developer by sponsoring me on GitHub
WebDAV WebDAV App InfusenPlayer App , WebDAV
V2 Web App refresh token V2 Koolshare
Note
, .
GitHub Releases pip PyPI :
pip install aliyundrive-webdav
Snapcraft UbuntuDebian snap
sudo snap install aliyundrive-webdav
GitHub Releases ipk aarch64/arm/mipsel/x86_64/i686 opkg nanopi r4s
wget https://github.com/messense/aliyundrive-webdav/releases/download/v2.3.3/aliyundrive-webdav_2.3.3-1_aarch64_generic.ipk
wget https://github.com/messense/aliyundrive-webdav/releases/download/v2.3.3/luci-app-aliyundrive-webdav_2.3.3_all.ipk
wget https://github.com/messense/aliyundrive-webdav/releases/download/v2.3.3/luci-i18n-aliyundrive-webdav-zh-cn_2.3.3-1_all.ipk
opkg install aliyundrive-webdav_2.3.3-1_aarch64_generic.ipk
opkg install luci-app-aliyundrive-webdav_2.3.3_all.ipk
opkg install luci-i18n-aliyundrive-webdav-zh-cn_2.3.3-1_all.ipk
CPU GitHub Releases ipk OpenWrt CPU
CPU | |
---|---|
nanopi r4s | aarch64_generic |
AX3600 | aarch64_cortex-a53 |
N1 | aarch64_cortex-a53 |
Newifi D2 | mipsel_24kc |
Pogoplug | arm_mpcore |
Tips: CPU
opkg print-architecture
docker run -d --name=aliyundrive-webdav --restart=unless-stopped -p 8080:8080 \
-v /etc/aliyundrive-webdav/:/etc/aliyundrive-webdav/ \
-e REFRESH_TOKEN='your refresh token' \
-e WEBDAV_AUTH_USER=admin \
-e WEBDAV_AUTH_PASSWORD=admin \
messense/aliyundrive-webdav
REFRESH_TOKEN
refresh_token``WEBDAV_AUTH_USER
WEBDAV_AUTH_PASSWORD
WebDAV
qnap-aliyunpan-webdav by @iranee.
NAS ContainerStation Management () Create Application ()
version: '3.3'
services:
aliyundrive-webdav:
container_name: aliyundrive-webdav
restart: unless-stopped
ports:
- '8080:8080'
environment:
- 'REFRESH_TOKEN=mytoken...'
image: messense/aliyundrive-webdav
REFRESH_TOKEN
:8080
Create () http://nas:8080/
rclone Nextcloud WebDAV sha1 checksums.
--no-update-modtime
rclone
rclone --no-update-modtime copy abc.pdf aliyundrive-nc://docs/
aliyundrive-webdav qr login
refresh token$ aliyundrive-webdav --help
WebDAV server for AliyunDrive
Usage: aliyundrive-webdav [OPTIONS]
aliyundrive-webdav <COMMAND>
Commands:
qr Scan QRCode
help Print this message or the help of the given subcommand(s)
Options:
--host <HOST>
Listen host
[env: HOST=]
[default: 0.0.0.0]
-p, --port <PORT>
Listen port
[env: PORT=]
[default: 8080]
--client-id <CLIENT_ID>
Aliyun drive client_id
[env: CLIENT_ID=]
--client-secret <CLIENT_SECRET>
Aliyun drive client_secret
[env: CLIENT_SECRET=]
--drive-type <DRIVE_TYPE>
Aliyun drive type
[env: DRIVE_TYPE=]
Possible values:
- resource: Resource drive
- backup: Backup drive
- default: Default drive
-r, --refresh-token <REFRESH_TOKEN>
Aliyun drive refresh token
[env: REFRESH_TOKEN=]
-U, --auth-user <AUTH_USER>
WebDAV authentication username
[env: WEBDAV_AUTH_USER=]
-W, --auth-password <AUTH_PASSWORD>
WebDAV authentication password
[env: WEBDAV_AUTH_PASSWORD=]
-I, --auto-index
Automatically generate index.html
-S, --read-buffer-size <READ_BUFFER_SIZE>
Read/download buffer size in bytes, defaults to 10MB
[default: 10485760]
--upload-buffer-size <UPLOAD_BUFFER_SIZE>
Upload buffer size in bytes, defaults to 16MB
[default: 16777216]
--cache-size <CACHE_SIZE>
Directory entries cache size
[default: 1000]
--cache-ttl <CACHE_TTL>
Directory entries cache expiration time in seconds
[default: 600]
--root <ROOT>
Root directory path
[env: WEBDAV_ROOT=]
[default: /]
-w, --workdir <WORKDIR>
Working directory, refresh_token will be stored in there if specified
--no-trash
Delete file permanently instead of trashing it
--read-only
Enable read only mode
--tls-cert <TLS_CERT>
TLS certificate file path
[env: TLS_CERT=]
--tls-key <TLS_KEY>
TLS private key file path
[env: TLS_KEY=]
--strip-prefix <STRIP_PREFIX>
Prefix to be stripped off when handling request
[env: WEBDAV_STRIP_PREFIX=]
--debug
Enable debug log
--no-self-upgrade
Disable self auto upgrade
--skip-upload-same-size
Skip uploading same size file
--prefer-http-download
Prefer downloading using HTTP protocol
--redirect
Enable 302 redirect when possible
-h, --help
Print help (see a summary with '-h')
-V, --version
Print version
Note
TLS/HTTPS MIPS
Note
--skip-upload-same-size
This work is released under the MIT license. A copy of the license is provided in the LICENSE file.