This commit is contained in:
2025-07-19 22:49:32 +08:00
commit c01fd9130d
30 changed files with 1332 additions and 0 deletions

View File

@ -0,0 +1,44 @@
package config
func (config *Config) Default() {
a := Config{
SafeLine: SafeLine{
Host: Host{
HostName: "192.168.1.4",
Port: "1443",
},
ApiToken: "xxx",
},
ApplyCert: ApplyCert{
Days: 30,
Email: "xxx",
SavePath: "/tmp/ssl",
DNSProviderConfig: DNSProviderConfig{
DNSProvider: "xxx",
TencentCloud: TencentCloud{
SecretID: "xxx",
SecretKey: "xxx",
},
AliCloud: AliCloud{
AccessKeyId: "xxx",
AccessKeySecret: "xxx",
RAMRole: "xxx(可选)",
STSToken: "xxx(可选)",
},
HuaweiCloud: HuaweiCloud{
AccessKeyId: "xxx",
Region: "xxx",
SecretAccessKey: "xxx",
},
WestCN: WestCN{
Username: "xxx",
Password: "xxx",
},
RainYun: RainYun{
ApiKey: "xxx",
},
},
},
}
a.Write("./config.json")
}