2022-10-12 10:57:22 +00:00
|
|
|
package constant
|
|
|
|
|
|
|
|
import (
|
|
|
|
"path"
|
2023-01-29 08:38:34 +00:00
|
|
|
|
|
|
|
"github.com/1Panel-dev/1Panel/backend/global"
|
2022-10-12 10:57:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
2023-05-16 09:31:47 +00:00
|
|
|
DataDir = global.CONF.System.DataDir
|
|
|
|
ResourceDir = path.Join(DataDir, "resource")
|
|
|
|
AppResourceDir = path.Join(ResourceDir, "apps")
|
|
|
|
AppInstallDir = path.Join(DataDir, "apps")
|
|
|
|
LocalAppResourceDir = path.Join(AppResourceDir, "local")
|
|
|
|
LocalAppInstallDir = path.Join(AppInstallDir, "local")
|
|
|
|
RemoteAppResourceDir = path.Join(AppResourceDir, "remote")
|
|
|
|
RuntimeDir = path.Join(DataDir, "runtime")
|
2023-10-18 09:02:24 +00:00
|
|
|
RecycleBinDir = "/.1panel_clash"
|
2023-11-20 08:16:20 +00:00
|
|
|
SSLLogDir = path.Join(global.CONF.System.DataDir, "log", "ssl")
|
2022-12-28 10:35:53 +00:00
|
|
|
)
|