Where Does Casdoor Store Config and Data?
Casdoor reads app.conf in conf with users and objects in the configured database beside uploads.
Last updated
Casdoor splits settings between a config file and a database. The app.conf file in conf sets database connection, ports, and storage providers. Users, applications, and policies persist as rows in that database.
Deploy layouts root these differently across binaries and Docker images. Object uploads land in the provider named by config, from local disk to S3. Back up the config with a database dump for restores.
Where Casdoor stores this, by platform
[CasDir]/conf/app.conf
Database connection plus ports and providers live here. Users persist as rows in the named database. Docker images remap through volumes.
Frequently asked questions
How do I back up Casdoor?
Copy app.conf with a dump of the configured database and the object store. The set restores onto a fresh deploy. Keep provider keys in the config safe.
Where are Casdoor uploads?
In the storage provider named by app.conf, local disk by default. Database rows reference the files. Move both sides together.
Notice an outdated path? Let us know.