mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 23:27:17 +08:00
32 lines
868 B
Go
32 lines
868 B
Go
package config
|
|
|
|
import (
|
|
"github.com/goravel/framework/facades"
|
|
)
|
|
|
|
func init() {
|
|
config := facades.Config()
|
|
config.Add("filesystems", map[string]any{
|
|
// Default Filesystem Disk
|
|
//
|
|
// Here you may specify the default filesystem disk that should be used
|
|
// by the framework. The "local" disk, as well as a variety of cloud
|
|
// based disks are available to your application. Just store away!
|
|
"default": "local",
|
|
|
|
// Filesystem Disks
|
|
//
|
|
// Here you may configure as many filesystem "disks" as you wish, and you
|
|
// may even configure multiple disks of the same driver. Defaults have
|
|
// been set up for each driver as an example of the required values.
|
|
//
|
|
// Supported Drivers: "local", "custom"
|
|
"disks": map[string]any{
|
|
"local": map[string]any{
|
|
"driver": "local",
|
|
"root": facades.App().ExecutablePath("storage"),
|
|
},
|
|
},
|
|
})
|
|
}
|