WebDAV server for AliyunDrive
Project description
aliyundrive-webdav
阿里云盘 WebDAV 服务
安装
可以从 GitHub Releases 页面下载预先构建的二进制包, 也可以使用 pip 从 PyPI 下载:
pip install aliyundrive-webdav
OpenWrt 路由器
GitHub Releases 中有预编译的 ipk 文件, 目前提供了 aarch64 和 arm 两个版本,可以下载后使用 opkg 安装,比如
wget https://github.com/messense/aliyundrive-webdav/releases/download/v0.1.19/aliyundrive-webdav_0.1.19-0_aarch64_generic.ipk
wget https://github.com/messense/aliyundrive-webdav/releases/download/v0.1.19/luci-app-aliyundrive-webdav_0.1.19-0_all.ipk
opkg install aliyundrive-webdav_0.1.19-0_aarch64_generic.ipk
opkg install luci-app-aliyundrive-webdav_0.1.19-0_all.ipk
Koolshare 梅林固件
GitHub Releases 中有预编译包 aliyundrivewebdav-merlin-arm*.tar.gz
,
目前只提供了旧的 arm380 固件的版本,可在下载后在软件中心离线安装。
梅林 384/386 固件也可以离线安装,但后台管理界面可能不工作(暂无机器开发适配,欢迎 PR 修复),可以直接使用 dbus
命令进行配置
dbus set aliyundrivewebdav_refresh_token='xxx' # 阿里云盘 refresh_token
dbus set aliyundrivewebdav_enable=1 # 设置为 0 禁用服务
dbus set aliyundrivewebdav_port=8080 # 监听端口
dbus set aliyundrivewebdav_auth_user=admin # 用户名
dbus set aliyundrivewebdav_auth_password=admin # 密码
并使用 /koolshare/scripts/aliyundrivewebdav_config.sh
命令启动/停止服务。
Docker 运行
docker run -d --name=aliyundrive-webdav --restart=unless-stopped -p 8080:8080 -e REFRESH_TOKEN='refresh token' messense/aliyundrive-webdav
命令行用法
aliyundrive-webdav --help
aliyundrive-webdav 0.1.19
USAGE:
aliyundrive-webdav [FLAGS] [OPTIONS] --refresh-token <refresh-token>
FLAGS:
-I, --auto-index Automatically generate index.html
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-W, --auth-password <auth-password> WebDAV authentication password [env: WEBDAV_AUTH_PASSWORD=]
-U, --auth-user <auth-user> WebDAV authentication username [env: WEBDAV_AUTH_USER=]
--cache-size <cache-size> Directory entries cache size [default: 1000]
--host <host> Listen host [default: 127.0.0.1]
-p, --port <port> Listen port [default: 8080]
-S, --read-buffer-size <read-buffer-size>
Read/download buffer size in bytes, defaults to 10MB [default: 10485760]
-r, --refresh-token <refresh-token> Aliyun drive refresh token [env: REFRESH_TOKEN=]
获取 refresh_token
登录阿里云盘后,可以在开发者工具 ->
Application -> Local Storage 中的 token
字段中找到。
License
This work is released under the MIT license. A copy of the license is provided in the LICENSE file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aliyundrive_webdav-0.1.19.tar.gz
(344.7 kB
view hashes)
Built Distributions
Close
Hashes for aliyundrive_webdav-0.1.19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0f31aaa2495b3353da6ad1807d027790e57e3b45ddce10701f0f302e8db8dea |
|
MD5 | bc46106c8cbf91b47300f5bd006d11c6 |
|
BLAKE2b-256 | baa309cb032df1da7a5a70a992ef54f9eae7901adfdd14cb32472bb59b90d32c |
Close
Hashes for aliyundrive_webdav-0.1.19-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 885b4ff5b978db72a2d53d75b0765a947cdb03a22efae93f3d9f44471677826b |
|
MD5 | a3340f8e0700262c086121cb53c10aee |
|
BLAKE2b-256 | 75e6fd3872232a96c336a4f02e280d60426606a8dacf3d9a9b58379fe3b5cbc8 |
Close
Hashes for aliyundrive_webdav-0.1.19-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c186862a0c0399079e19c35f8e3228768942afb72ad173aca9fd79e4f3edf4f0 |
|
MD5 | bf45b6fd4b31344c064440fa5a2ca0d7 |
|
BLAKE2b-256 | bf94d1d4decc160dd1198b7f4c1e169271449528eff9a22832b3b82e901bb43c |
Close
Hashes for aliyundrive_webdav-0.1.19-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df96f02633453968c2c5fcabcc96777388bbfcc8d8fbc9e2727d933cf59c5699 |
|
MD5 | d36aef3f9d968479eba6eb143f73c97e |
|
BLAKE2b-256 | 31af3c194a4d0c59f97af0d751f6c4ed6568dcf02cc377910ae852030b02fa4b |
Close
Hashes for aliyundrive_webdav-0.1.19-py3-none-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c16ae65f0ca19b5d63ee288facf57a2a0c6b2a7a20249f9f523420bec9bfe006 |
|
MD5 | 1cde4cdb6738172ecebe3b0a9367077c |
|
BLAKE2b-256 | c71889b09ad49226860f3aa78df89f48d74a684d1fdf78028449ed18acd377d0 |
Close
Hashes for aliyundrive_webdav-0.1.19-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c06278e73cd0fb5b2c6f31a77175db30e6fb7b33556306fea919501407c995d |
|
MD5 | 577dc25b195e979edaa641e64e423420 |
|
BLAKE2b-256 | 20e800a80618cbc2b7fe8c22a5eb4fc2b1c7414940118b1f503e1c34244b2365 |
Close
Hashes for aliyundrive_webdav-0.1.19-py3-none-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | faa275948c51d8b63156cde97a6e6e5dbca2e36bccf885543e8f4d3981a947bc |
|
MD5 | a2d496fe9a70531cc1c0198ab2c45200 |
|
BLAKE2b-256 | e3466c2c66a996be5c278f53ff5751d33a0c11ed51bea0d3b9dfc014e7e02e49 |