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#
Install the Image#
- Double-click on Alist in the Images tab to configure it
- Configure port mapping for external access
- Configure disk mounting
Create a new folder in the NAS and map it to /opt/alist/data in the container
- View the password
After starting, immediately open the logs to see the initial password. Make sure to save it.
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.
Bind Quark Cloud Storage#
Add an account
-
- Open WebDAV and configure the token
-
- 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
- Select WebDAV
- 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
Result#
- Quark Cloud Storage will be directly mounted in File Station
- You can also access the Alist web page and directly play videos from the cloud storage service