Alist on Synology NA


Set up Alist on Synology NAS

If you want to set up downloader with Aria as well , use the other docker image here https://hub.docker.com/r/xhofe/alist-aria2

Install Alist through docker

Preparation

  • Create a folder under docker/alist, grant full permission to Everyone

  • Connect to synology through remote SSH

    1
    2
    3
    felixy@USLC-FELIXY-M ~ % ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -c aes256-cbc XXX -p XXX

    felix_yanghui@DS218plus:~$

Run Docker

  • Run the docker with docker-cli

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    felix_yanghui@DS218plus:~$ sudo docker pull xhofe/alist
    Password:
    Using default tag: latest
    latest: Pulling from xhofe/alist
    7264a8db6415: Pull complete
    79745e4f888f: Pull complete
    3c33e08caf6b: Pull complete
    45f351bad286: Pull complete
    a98fc4aad311: Pull complete
    Digest: sha256:1e931c57d9de771f75c5c853231f215ffd8a684563323fa42138beda8ff42e5a
    Status: Downloaded newer image for xhofe/alist:latest
    docker.io/xhofe/alist:latest

    felix_yanghui@DS218plus:~$ sudo docker run -d --restart=always -v /volume1/docker/alist:/opt/alist/data -p 5244:5244 -e PUID=0 -e PGID=0 -e UMASK=022 --name="alist" xhofe/alist:latest
    4a1fa7bef232bb549e394dd7338932bad8e2cf467da21e50e927e89c07046f0b
  • set up the new password for Alist container

    1
    2
    3
    4
    5
    6
    7
    felix_yanghui@DS218plus:~$ sudo docker exec -it alist ./alist admin set "xxx"
    INFO[2023-11-20 18:51:52] reading config file: data/config.json
    INFO[2023-11-20 18:51:52] load config from env with prefix: ALIST_
    INFO[2023-11-20 18:51:52] init logrus...
    INFO[2023-11-20 18:51:52] admin user has been updated:
    INFO[2023-11-20 18:51:52] username: admin
    INFO[2023-11-20 18:51:52] password: xxx

Set up the network connection

  • Set up the port maping on router

    image-20231120131921976

  • Set up the reverse proxy of the FQDN and port

    • Control panel - > System - > logon portal - > Advanced - > Reversed proxy

Access to the Alist portal from external internet

image-20231120132259397


Alist on Synology NA
https://blog.excelsre.com/2023/11/20/alist-on-synology-nas/
作者
Felix Yang
发布于
2023年11月21日
许可协议