WebDAV server for AliyunDrive
Project description
aliyundrive-webdav
阿里云盘 WebDAV 服务,主要使用场景为配合支持 WebDAV 协议的客户端 App 如 Infuse、nPlayer 等实现在电视上直接观看云盘视频内容。
安装
可以从 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.27/aliyundrive-webdav_0.1.27-1_aarch64_generic.ipk
wget https://github.com/messense/aliyundrive-webdav/releases/download/v0.1.27/luci-app-aliyundrive-webdav_0.1.27_all.ipk
wget https://github.com/messense/aliyundrive-webdav/releases/download/v0.1.27/luci-i18n-aliyundrive-webdav-zh-cn_0.1.27-1_all.ipk
opkg install aliyundrive-webdav_0.1.27-1_aarch64_generic.ipk
opkg install luci-app-aliyundrive-webdav_0.1.27_all.ipk
opkg install luci-i18n-aliyundrive-webdav-zh-cn_0.1.27-1_all.ipk
Koolshare 梅林固件
GitHub Releases 中有预编译包 aliyundrivewebdav-merlin-arm*.tar.gz
,
目前提供了旧的 arm380 和兼容 arm384/386 固件的版本,可在下载后在软件中心离线安装。
Docker 运行
docker run -d --name=aliyundrive-webdav --restart=unless-stopped -p 8080:8080 -e REFRESH_TOKEN='refresh token' messense/aliyundrive-webdav
QNAP 威联通 NAS
亲测环境 Intel 64 位 x86 CPU 可用,其他应该大同小异。
管理员登陆 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/ 即可看到你网盘的自动生成索引网页文件。
参考文档
命令行用法
aliyundrive-webdav --help
aliyundrive-webdav 0.1.27
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
字段中找到。
注意:不是复制整段 JSON 值,而是 JSON 里 refresh_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
Built Distributions
Hashes for aliyundrive_webdav-0.1.27.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 888c2f4909c255eb494eeb7b829a46b66018c9ae6a74a7c80cdf949ae9d35b4c |
|
MD5 | 776294048d016d2c607b5367eaff518d |
|
BLAKE2b-256 | a9dcdf4f47390cc67be98137f3c071e16890f4b552031da0a9305672aa1a2abb |
Hashes for aliyundrive_webdav-0.1.27-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe699b1355c7152112cbe9e8345b405c31981b79cdca3dff624f7aa8beaed3fa |
|
MD5 | 2df9a72097d837d04503c5fd317a38e6 |
|
BLAKE2b-256 | 476c579690cd409183ade20190a3abb51e70d8859f3d4afb5ef01ba61f26586c |
Hashes for aliyundrive_webdav-0.1.27-py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5fc49ab389cf173939361c0250154af1ae7c16ec22d0c0c08a243355ea2b354 |
|
MD5 | 1e87c28f673c168376c427ee251861bb |
|
BLAKE2b-256 | 070f4b27733cc182b0dc1dff8aa5d68f62b5dcd82bb7e954d88bac7ca29ec345 |
Hashes for aliyundrive_webdav-0.1.27-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3dbd30838af69eac1183f26290280b5bdc56afab5f75f8c5ea7224bd4fd3490 |
|
MD5 | cf399abbee658647227b1b751002c2a3 |
|
BLAKE2b-256 | 991206299af00ba24db2d98421cd369fb8cc9a8ff7f2d7392e24a8c9fbb2d0a4 |
Hashes for aliyundrive_webdav-0.1.27-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4362bb0ea8324abae60d3d1c4629136130ef58a3e3827d423119dfdf945814bc |
|
MD5 | 1f4daa1409999ac5a6b203da4f865f23 |
|
BLAKE2b-256 | 41fd622d84b1df70a740766a6b2ab5e09c03d22069c264c189c6e4d6242d13f0 |
Hashes for aliyundrive_webdav-0.1.27-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ca5aeba1afcd80d023effd30eccdbb60a67c5ef8554595ccfca53ee5f96c7b2 |
|
MD5 | 29d8bd6a39d18600f433173c70499c52 |
|
BLAKE2b-256 | 094696354cb553572bc3c5504e062078cd54b88a5771270a3d9815bfe97d9d1b |
Hashes for aliyundrive_webdav-0.1.27-py3-none-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b289cb0283daa5ff7009089b0a6e4ce6a066535c1fccd0b329f5d4524451db8c |
|
MD5 | efca2dc5067798ee044bffa97c1011fb |
|
BLAKE2b-256 | 772fe4a985b174078f0e37a5bb2b41620f8e1a5be31d9f1bc6e8644ab739165d |
Hashes for aliyundrive_webdav-0.1.27-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 096f234e5379406d0d8f642c004e6d0cec137d12899aadd0883a07b628acba23 |
|
MD5 | 932fb7e2d95236d03744edddb24e9748 |
|
BLAKE2b-256 | 71f35805b3e048bc31b5c58dfbfa3f4ab0e74adc578657965adcd276fcc19672 |
Hashes for aliyundrive_webdav-0.1.27-py3-none-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a361c562a979d904ab87809e6c57fc738acd348921a4d23ac8b4122ddfecd885 |
|
MD5 | 7479b220fbba1565c3f66be91d81ea9e |
|
BLAKE2b-256 | 66543873dfd0656a01925f9eec5a61ea3a5c0675e3f918cdd811201105d6e58e |