本项目实现了和彩云网盘的Webdav协议,可以通过此协议将网盘挂载到Windows或者Nas中。项目是基于 zxbu/webdav-aliyundriver 修改实现的,如有侵权请联系删除。
[root@localhost ~]# java -jar caiyun-webdav.jar --caiyun.account="orches-c-account" --caiyun.token="orches-c-token" --caiyun.encrypt="orches-i-account-encrypt" --caiyun.tel="user telnum"
其中:
caiyun.account
:网页版和彩云Cookie中的 ORCHES-C-ACCOUNT 字段caiyun.token
:Cookie中的 ORCHES-C-TOKENcaiyun.encrypt
:Cookie中的 ORCHES-I-ACCOUNT-ENCRYPTcaiyun.tel
: 和彩云的注册号码caiyun.auth.user-name
:可选
默认admincaiyun.auth.password
:可选
默认admin
[root@localhost ~]# docker run -d --name=caiyun-webdav --restart=unless-stopped -p 8080:8080 -v /etc/localtime:/etc/localtime -e TZ="Asia/Shanghai" -e JAVA_OPTS="-Xmx512m" -e CAIYUN_ACCOUNT="ORCHES-C-ACCOUNT" -e CAIYUN_TOKEN="ORCHES-C-TOKEN" -e CAIYUN_ENCRYPT="ORCHES-I-ACCOUNT-ENCRYPT" -e CAIYUN_TEL="YOUR PHONE" vgearen/caiyun-webdav
默认认证账号密码admin/admin,需要修改添加参数 -e CAIYUN_AUTH_USER_NAME="USERNAME" -e CAIYUN_AUTH_PASSWORD="PASSWORD"
version: '3'
services:
caiyun-webdav:
image: vgearen/caiyun-webdav
container_name: caiyun-webdav
restart: unless-stopped
volumes:
- /etc/localtime:/etc/localtime
ports:
- "8080:8080"
tty: true
environment:
- TZ=Asia/Shanghai
- CAIYUN_ACCOUNT=<change me>
- CAIYUN_TOKEN=<change me>
- CAIYUN_ENCRYPT=<change me>
- CAIYUN_TEL=<change me>
# - CAIYUN_AUTH_USER_NAME=<change me>
# - CAIYUN_AUTH_PASSWORD=<change me>
打开网页版和彩云,Windows下按F12
调出开发者工具
,依次选择 应用程序 -> 存储 -> Cookie
- 账号密码登录
This work is released under the MIT license. A copy of the license is provided in the LICENSE file.