Ali cloud disk webdav protocol open source implementation project

Ali cloud disk webdav protocol open source implementation project

2022-09-02 0 561
Resource Number 38054 Last Updated 2025-02-24
¥ 0USD Upgrade VIP
Download Now Matters needing attention
Can't download? Please contact customer service to submit a link error!
Value-added Service: Installation Guide Environment Configuration Secondary Development Template Modification Source Code Installation

This issue is a recommended Ali cloud disk webdav protocol open source implementation project – Webdav-Aliyundriver.

Ali cloud disk webdav protocol open source implementation project插图

This project realizes the webdav protocol of Ali cloud disk, and only needs a simple configuration to make Ali cloud disk become the file server of webdav protocol. Based on this, you can mount Ali cloud disk as a disk of Windows, Linux, Mac system, you can do file management or file synchronization through NAS.

Installation use

refreshToken is supported. For details, see the parameter description.

--aliyundrive.refresh-token
refreshToken: See below for Refreshtoken
--server.port
This parameter is mandatory. The port number of the server is 8080 by default
--aliyundrive.auth.enable=true
Whether to enable WebDav account authentication. This parameter is enabled by default
--aliyundrive.auth.user-name=admin
The WebDav account is admin by default
--aliyundrive.auth.password=admin
Password of WebDav. The default value is admin
--aliyundrive.work-dir=/etc/aliyun-driver/
token mounting path (If multiple tokens are available, change this configuration.) 

Method of obtaining refreshToken:

1. First open the official website of Alibaba Cloud Disk through a browser (chrome is recommended) and log in: Ali Cloud Disk

2. After successful login, press F12 to open the developer tool, click Application, click Local Storage, and click under Local Storage
https://www.aliyundrive.com/, click on the right side of the token, you can see the inside of the data, which included a refresh_token, its value can be copied out. Format lowercase letters and numbers, do not copy double quotes. Example:
Ca6bf2175d73as2188efg81f87e55f11) < / p >

Ali cloud disk webdav protocol open source implementation project插图1

Run:

  • jar package run

Download the jar package:
https://github.com/zxbu/webdav-aliyundriver/releases

java -jar webdav.jar --aliyundrive.refresh-token="your refreshToken"
  • Container run
docker run -d --name=webdav-aliyundriver --restart=always -p 8080:8080  -v /etc/localtime:/etc/localtime -v /etc/aliyun-driver/:/etc/aliyun-driver/ -e TZ="Asia/Shanghai" -e ALIYUNDRIVE_REFRESH_TOKEN="your refreshToken" -e ALIYUNDRIVE_AUTH_PASSWORD="admin" -e JAVA_OPTS="-Xmx1g" zx5253/webdav-aliyundriver

# /etc/aliyun-driver/ Mount the volume automatically maintains the latest refreshToken. It is recommended to mount 
# ALIYUNDRIVE_AUTH_PASSWORD Indicates the password of the admin account. It is recommended to change 
# JAVA_OPTS The maximum memory usage can be modified, for example, -e JAVA_OPTS="-Xmx512m" indicates that the maximum memory limit is 512m
  • Docker-Compose
version: "3.0"
services:
  webdav-aliyundriver:
    image: zx5253/webdav-aliyundriver
    container_name: aliyundriver
    environment:
      - TZ=Asia/Shanghai
      - ALIYUNDRIVE_REFRESH_TOKEN=refreshToken
      - ALIYUNDRIVE_AUTH_USER-NAME=admin
      - ALIYUNDRIVE_AUTH_PASSWORD=admin
      - JAVA_OPTS=-Xmx1g
    volumes:
      - /etc/aliyun-driver/:/etc/aliyun-driver/
    ports:
      - 6666:8080
    restart: always

# "refreshToken" Please obtain it as described below. 
# ALIYUNDRIVE_AUTH_USER-NAME and ALIYUNDRIVE_AUTH_PASSWORD indicate the connection user name and password. You are advised to change them. 
# "/etc/aliyun-driver/:/etc/aliyun-driver/", can be changed before the colon to the specified directory, Such as "/ homes/USER/docker alidriver / : / etc/aliyun - driver/". 
< span class = "HLJS - the comment" > # deleted "/ etc/localtime: / etc/localtime", if there is any need to please add under the environment of synchronization time. 
# Port 6666 can be changed according to needs, this port is the WebDAV connection port,8080 is the configuration port in the container, please modify according to your ability. 
# It is recommended not to keep these Chinese comments in case of errors, such as QNAP. 

Supported functions

  • View folders, view files
  • File moving directory
  • File rename
  • File download
  • File deletion
  • File upload (support automatic batch upload of large files)
  • Support large file upload (official limit 30G)
  • Support WebDav permission verification (Default password: admin/admin)
  • File download breakpoint resume
  • Webdav streaming media playback and other functions

Not supported

  • Change the file name as you move the file to another directory. For example, moving /a.zip to /b/a1.zip is not supported
  • File upload breakpoint resume

You can read more on your own.

资源下载此资源为免费资源立即下载
Telegram:@John_Software

Disclaimer: This article is published by a third party and represents the views of the author only and has nothing to do with this website. This site does not make any guarantee or commitment to the authenticity, completeness and timeliness of this article and all or part of its content, please readers for reference only, and please verify the relevant content. The publication or republication of articles by this website for the purpose of conveying more information does not mean that it endorses its views or confirms its description, nor does it mean that this website is responsible for its authenticity.

Ictcoder Free source code Ali cloud disk webdav protocol open source implementation project https://ictcoder.com/kyym/ali-cloud-disk-webdav-protocol-open-source-implementation-project.html

Share free open-source source code

Q&A
  • 1, automatic: after taking the photo, click the (download) link to download; 2. Manual: After taking the photo, contact the seller to issue it or contact the official to find the developer to ship.
View details
  • 1, the default transaction cycle of the source code: manual delivery of goods for 1-3 days, and the user payment amount will enter the platform guarantee until the completion of the transaction or 3-7 days can be issued, in case of disputes indefinitely extend the collection amount until the dispute is resolved or refunded!
View details
  • 1. Heptalon will permanently archive the process of trading between the two parties and the snapshots of the traded goods to ensure that the transaction is true, effective and safe! 2, Seven PAWS can not guarantee such as "permanent package update", "permanent technical support" and other similar transactions after the merchant commitment, please identify the buyer; 3, in the source code at the same time there is a website demonstration and picture demonstration, and the site is inconsistent with the diagram, the default according to the diagram as the dispute evaluation basis (except for special statements or agreement); 4, in the absence of "no legitimate basis for refund", the commodity written "once sold, no support for refund" and other similar statements, shall be deemed invalid; 5, before the shooting, the transaction content agreed by the two parties on QQ can also be the basis for dispute judgment (agreement and description of the conflict, the agreement shall prevail); 6, because the chat record can be used as the basis for dispute judgment, so when the two sides contact, only communicate with the other party on the QQ and mobile phone number left on the systemhere, in case the other party does not recognize self-commitment. 7, although the probability of disputes is very small, but be sure to retain such important information as chat records, mobile phone messages, etc., in case of disputes, it is convenient for seven PAWS to intervene in rapid processing.
View details
  • 1. As a third-party intermediary platform, Qichou protects the security of the transaction and the rights and interests of both buyers and sellers according to the transaction contract (commodity description, content agreed before the transaction); 2, non-platform online trading projects, any consequences have nothing to do with mutual site; No matter the seller for any reason to require offline transactions, please contact the management report.
View details

Related Article

make a comment
No comments available at the moment
Official customer service team

To solve your worries - 24 hours online professional service