diff --git a/agent/cmd/server/conf/app.yaml b/agent/cmd/server/conf/app.yaml index 0c9a5a799..02320e4f2 100644 --- a/agent/cmd/server/conf/app.yaml +++ b/agent/cmd/server/conf/app.yaml @@ -4,6 +4,7 @@ system: base_dir: /opt mode: dev repo_url: https://resource.fit2cloud.com/1panel/package + resource_url: https://resource.fit2cloud.com/1panel/resource app_repo: https://apps-assets.fit2cloud.com username: admin password: admin diff --git a/agent/configs/system.go b/agent/configs/system.go index 721dba88b..077ee0285 100644 --- a/agent/configs/system.go +++ b/agent/configs/system.go @@ -1,19 +1,20 @@ package configs type System struct { - MasterAddr string `mapstructure:"master_addr"` - DbFile string `mapstructure:"db_agent_file"` - DbPath string `mapstructure:"db_path"` - LogPath string `mapstructure:"log_path"` - DataDir string `mapstructure:"data_dir"` - TmpDir string `mapstructure:"tmp_dir"` - Cache string `mapstructure:"cache"` - Backup string `mapstructure:"backup"` - EncryptKey string `mapstructure:"encrypt_key"` - BaseDir string `mapstructure:"base_dir"` - Mode string `mapstructure:"mode"` - RepoUrl string `mapstructure:"repo_url"` - Version string `mapstructure:"version"` - IsDemo bool `mapstructure:"is_demo"` - AppRepo string `mapstructure:"app_repo"` + MasterAddr string `mapstructure:"master_addr"` + DbFile string `mapstructure:"db_agent_file"` + DbPath string `mapstructure:"db_path"` + LogPath string `mapstructure:"log_path"` + DataDir string `mapstructure:"data_dir"` + TmpDir string `mapstructure:"tmp_dir"` + Cache string `mapstructure:"cache"` + Backup string `mapstructure:"backup"` + EncryptKey string `mapstructure:"encrypt_key"` + BaseDir string `mapstructure:"base_dir"` + Mode string `mapstructure:"mode"` + RepoUrl string `mapstructure:"repo_url"` + ResourceUrl string `mapstructure:"resource_url"` + Version string `mapstructure:"version"` + IsDemo bool `mapstructure:"is_demo"` + AppRepo string `mapstructure:"app_repo"` } diff --git a/core/configs/system.go b/core/configs/system.go index 96096e1b6..5c63be9a3 100644 --- a/core/configs/system.go +++ b/core/configs/system.go @@ -12,6 +12,7 @@ type System struct { BackupDir string `mapstructure:"backup_dir"` Mode string `mapstructure:"mode"` RepoUrl string `mapstructure:"repo_url"` + ResourceUrl string `mapstructure:"resource_url"` Version string `mapstructure:"version"` Username string `mapstructure:"username"` Password string `mapstructure:"password"`