插件取消exe限制

pull/236/head
v-me-50 2025-06-16 17:38:13 +08:00
parent f1a17de516
commit 46afdc979e
2 changed files with 5 additions and 0 deletions

View File

@ -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)

View File

@ -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",