AList
AList is a file list program that supports multiple storages, web browsing and WebDAV, driven by gin and Solidjs.
AList official document: https://alist.nn.ci/
AList official GitHub address: https://github.com/alist-org/alist
Many functions are officially written very clearly and in detail, I will only write about my personal implementation process , There are some pitfalls for everyone to step on. The purpose of this blog is to let everyone avoid detours.
I installed the AList service on the Tencent cloud server, and then used the local connection service
The first step is to install and start AList
From the official documentation, we can see that there are several installation methods. Here is a summary of the installation guide in the Linux environment.
Because I am a Java development engineer, I first chose Docker installation when I saw the official Docker installation method.
docker run -d --restart=always -v /etc/alist:/opt/alist/data -p 5244:5244 --name="alist" xhofe/alist:latest
But this installation does not know why the infinite password is wrong after running, and the password is still wrong after modifying the user and password: (
So it is recommended to use "One-Key Script" to install and I personally tested it successfully
. Installation command:
curl -fsSL "https://alist.nn.ci/v3.sh" | bash -s install
Start after successful installation
systemctl start alist
The default port number is 5244, remember to add the protocol in the server firewall
to check the status of alist
systemctl status alist
If there is no problem, visit your server ip/domain name plus port number to test~
Bingo~
The second step is to add cloud disk in AList
Because I have a 6T quark network disk, take the quark network disk mount as an example.
First log in to your quark network disk, press F12 to check the network information, and copy the cookie data in the request beginning with sort. This is your login cookie to
log in to you AList management Add Quark to the account, and paste the cookie you just copied here. The
root directory file_id is your cloud disk address, and the default 0 is the root directory.
Click to save and return to the homepage.
Here you can happily access the content in the cloud disk.
The third step is to use WebDAV to mount to the local
First of all, WebDAV is the HTTP/HTTPS protocol. What we just added in the server firewall is the TCP protocol. Most servers only open ports 443 and 80 to correspond to the HTTPS and HTTP protocols for security. Because port 80 needs to be used, we use the 443
protocol
. Open port 443 in the server
Modify the config file of AList
The default configuration file is in /opt/alist/data/config.json
vim /opt/alist/data/config.json
Modify the port to 443
to restart the service
systemctl restart alist
check status
systemctl status alist
If there is no problem, you can connect to the local. Take MacOS as an example:
Note: According to the WebDAV description of the document, the connection suffix should be /dav/
Click to connect to
Bingo:》