Skip to main content

Hosting Static Files in an Intranet

If you are deploying Casdoor on an intranet, you may not be able to access the static resources directly over the internet. You need to deploy the static resources where you can access them, and then modify the configuration in Casdoor in three places.

Deploy static resources

All static resources in Casdoor, including images, logos, CSS, etc., are stored in the casbin/static repository.

Clone the repository and deploy it on a web server. Make sure you can access the resources.

Modify in Casdoor

You can simply modify the configuration file to set the static resource address to where you deployed it. Go to conf/app.conf and set staticBaseUrl to your deployed address.

staticBaseUrl = "https://cdn.casbin.org"