27 lines
461 B
Go
27 lines
461 B
Go
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",
|
|
},
|
|
},
|
|
},
|
|
}
|
|
a.Write("./config.json")
|
|
}
|