feat: 支持 SSL 证书自动申请并重构 DDNS 任务逻辑

- 实现阿里/腾讯云 SSL 证书的全生命周期自动化管理。
- 重构 NewJob 为 DdnsJob,优化子域名匹配与记录自动创建逻辑。
- 更新项目配置结构,移除冗余的 AppJob 相关代码。
This commit is contained in:
ShaoHua
2026-04-08 21:45:36 +08:00
parent 10f156e9e2
commit 773c230e3d
15 changed files with 326 additions and 227 deletions
+3 -3
View File
@@ -18,17 +18,17 @@ namespace Hua.DDNS.Test
var config = new ConfigurationBuilder()
.SetBasePath(AppContext.BaseDirectory)
.AddJsonFile(configPath, true)
.AddEnvironmentVariables()// 把环境变量也放到 Configuraiton当中
.AddEnvironmentVariables()// ѻҲŵ Configuraiton
.Build();
var sc = DIConfig.ConfigureServices(config);
var job = sc.GetService<NewJob>();
var job = sc.GetService<DdnsJob>();
job?.Execute(null);
}
catch (Exception e)
{
Assert.False(false, $"请求异常:{e.Message}");
Assert.False(false, $":{e.Message}");
}
}
}