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
-
In the Casdoor admin console, go to Identity > Providers and add a provider.
-
Set Category to
Storageand Type toSynology. -
Fill in the fields. At least Client ID, Client secret, and Endpoint are required.
Casdoor field Synology / meaning Required Client ID Name of the DSM account Yes Client secret Password of the DSM account Yes Endpoint URL of DSM, such as https://nas.example.com:5001Yes Path prefix Folder under /homefor the filesNo Casdoor doesn't use Bucket for Synology.

-
Save the provider.