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.
配置Casdoor
您可以简单地修改配置文件,将静态资源地址设置为您部署的地址。 Go to conf/app.conf and set staticBaseUrl
to your deployed address.
staticBaseUrl = "https://cdn.casbin.org"