Skip to main content

Store files on a Synology NAS

This guide explains how to store the uploaded files of Casdoor on a Synology NAS. Casdoor signs in to DSM with a DSM account and uploads the files through the File Station API to the /home shared folder, that is, the home folder of that account.


Learning outcomes​

  • Add a Synology NAS as a storage provider in Casdoor.

What you need​

  • A Synology NAS that Casdoor can reach over HTTP or HTTPS, with the user home service turned on
  • A DSM account for Casdoor without 2-step verification. See the File Station API guide.
  • Administrator access to the Casdoor admin console

Add the provider in Casdoor​

  1. In the Casdoor admin console, go to Identity > Providers and add a provider.

  2. Set Category to Storage and Type to Synology.

  3. Fill in the fields. At least Client ID, Client secret, and Endpoint are required.

    Casdoor fieldSynology / meaningRequired
    Client IDName of the DSM accountYes
    Client secretPassword of the DSM accountYes
    EndpointURL of DSM, such as https://nas.example.com:5001Yes
    Path prefixFolder under /home for the filesNo

    Casdoor doesn't use Bucket for Synology.

    Synology provider in Casdoor

  4. Save the provider.

See also​