mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-11 22:30:47 +01:00
1.2 KiB
1.2 KiB
Adding provider support
CloudDNS as an example
-
Fork this repo, modify autocert.go
var providersGenMap = map[string]ProviderGenerator{ "cloudflare": providerGenerator(cloudflare.NewDefaultConfig, cloudflare.NewDNSProviderConfig), // add here, e.g. "clouddns": providerGenerator(clouddns.NewDefaultConfig, clouddns.NewDNSProviderConfig), } -
Go to https://go-acme.github.io/lego/dns/clouddns and check for required config
-
Build
go-proxywithmake build -
Set required config in
config.ymlautocert->optionssection# From https://go-acme.github.io/lego/dns/clouddns/ CLOUDDNS_CLIENT_ID=bLsdFAks23429841238feb177a572aX \ CLOUDDNS_EMAIL=you@example.com \ CLOUDDNS_PASSWORD=b9841238feb177a84330f \ lego --email you@example.com --dns clouddns --domains my.example.org runShould turn into:
autocert: ... options: client_id: bLsdFAks23429841238feb177a572aX email: you@example.com password: b9841238feb177a84330f -
Run with
GOPROXY_NO_SCHEMA_VALIDATION=1and test if it works -
Commit and create pull request