diff --git a/backend/internal/cert/deploy/deploy.go b/backend/internal/cert/deploy/deploy.go index 6a26dea..763dede 100644 --- a/backend/internal/cert/deploy/deploy.go +++ b/backend/internal/cert/deploy/deploy.go @@ -1,6 +1,7 @@ package deploy import ( + "ALLinSSL/backend/internal/cert/deploy/aliyun" "ALLinSSL/backend/internal/cert/deploy/doge" "ALLinSSL/backend/internal/cert/deploy/plugin" "ALLinSSL/backend/public" @@ -62,6 +63,9 @@ func Deploy(cfg map[string]any, logger *public.Logger) error { case "aliyun-waf": logger.Debug("部署到阿里云WAF...") return DeployAliyunWaf(cfg) + case "aliyun-esa": + logger.Debug("部署到阿里云ESA...") + return aliyun.DeployAliyunESA(cfg) case "safeline-site": logger.Debug("部署雷池WAF网站...") return DeploySafeLineWafSite(cfg, logger) diff --git a/backend/migrations/init.go b/backend/migrations/init.go index 988738b..e32685c 100644 --- a/backend/migrations/init.go +++ b/backend/migrations/init.go @@ -287,6 +287,7 @@ INSERT INTO settings (key, value, create_time, update_time, active, type) VALUES INSERT INTO settings (key, value, create_time, update_time, active, type) VALUES ('port', '%d', '2025-04-15 15:58', '2025-04-15 15:58', 1, null);`, uuidStr, randomStr, port) insertDefaultData(dbSetting, "settings", Isql) + InsertIfNotExists(dbSetting, "settings", map[string]any{"key": "plugin_dir"}, []string{"key", "value", "create_time", "update_time", "active"}, []any{"plugin_dir", "plugins", "2025-04-15 15:58", "2025-04-15 15:58", 1}) err = sqlite_migrate.EnsureDatabaseWithTables( "data/accounts.db",