simon

simon

github

Mounting Nas to Quark Cloud Drive

Background#

For some mature cloud storage services, such as Baidu Cloud and S3, Synology NAS has its own Cloud Station for synchronization and management, automatically syncing the contents of designated folders to specified locations on the NAS.

However, for some niche cloud storage services, Synology NAS does not provide native support, making it inconvenient to download data from these cloud storage services. It requires manual downloading to a computer and then manually uploading to the NAS. Of course, this can also be solved with scripts, but it is not very elegant.

Solution#

We can use Alist to create a network file server, mount various cloud storage services on the Alist server, and then provide WebDAV to directly mount them on the NAS. This way, the location on the cloud storage service will be just like a local one.

Installing Alist#

We will use the built-in Docker application on Synology NAS to install Alist.

Download the Image#

FCD58FBF-F0FF-469F-BA5C-C960B52E9F84

Install the Image#

  • Double-click on Alist in the Images tab to configure it
    5AEBD3D1-73CF-4760-BA52-F14BC244D659
  • Configure port mapping for external access
    5CDEB4FB-56E8-41A9-AF2B-FE528FC70402
  • Configure disk mounting
    Create a new folder in the NAS and map it to /opt/alist/data in the container
    Pasted image 20220621140029
  • View the password
    After starting, immediately open the logs to see the initial password. Make sure to save it.
    A9E47173-EEF9-45F0-9234-111DBF0158FF

Access Configuration#

Access your domain name + port number and enter the saved password to enter the management console.

Initial Configuration#

Configure a new password and WebDAV password, and save them to avoid forgetting.
CleanShot 2022-06-21 at 14.34.47@2x

Bind Quark Cloud Storage#

Add an account
- CleanShot 2022-06-21 at 14.36.41@2x
- Open WebDAV and configure the token
- CleanShot 2022-06-21 at 14.38.26@2x
- PS: To obtain this token, go to the web version of Quark Cloud Storage, open the console, click on Network, find the URL request after logging in, and copy the cookie from the request header.

Bind to the NAS#

This part has a small pitfall that took me some time to figure out.

  • Configure in File Station
    CleanShot 2022-06-21 at 15.11.35@2x
  • Select WebDAV
    CleanShot 2022-06-21 at 17.47.24@2x
  • Configuration
    • The address is the external domain name or IP
    • The port is the one exposed on the local machine
    • Attention! Enter "dav" in the path. If connecting from a Mac or Windows, enter "/dav"
    • Account and password
      CleanShot 2022-06-21 at 17.47.47@2x

Result#

  • Quark Cloud Storage will be directly mounted in File Station
    CleanShot 2022-06-21 at 17.51.44@2x
  • You can also access the Alist web page and directly play videos from the cloud storage service
    CleanShot 2022-06-21 at 17.52.31@2x
    CleanShot 2022-06-21 at 17.52.43@2x
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.