forked from TrueCloudLab/lego
gcloud: More detailed information about Google Cloud DNS. (#761)
This commit is contained in:
parent
ec6c22d70b
commit
a43ec709e8
2 changed files with 3 additions and 3 deletions
|
@ -51,7 +51,7 @@ Here is an example bash command using the CloudFlare DNS provider:
|
||||||
fmt.Fprintln(w, "\tfastdns:\tAKAMAI_HOST, AKAMAI_CLIENT_TOKEN, AKAMAI_CLIENT_SECRET, AKAMAI_ACCESS_TOKEN")
|
fmt.Fprintln(w, "\tfastdns:\tAKAMAI_HOST, AKAMAI_CLIENT_TOKEN, AKAMAI_CLIENT_SECRET, AKAMAI_ACCESS_TOKEN")
|
||||||
fmt.Fprintln(w, "\tgandi:\tGANDI_API_KEY")
|
fmt.Fprintln(w, "\tgandi:\tGANDI_API_KEY")
|
||||||
fmt.Fprintln(w, "\tgandiv5:\tGANDIV5_API_KEY")
|
fmt.Fprintln(w, "\tgandiv5:\tGANDIV5_API_KEY")
|
||||||
fmt.Fprintln(w, "\tgcloud:\tGCE_PROJECT, GCE_SERVICE_ACCOUNT_FILE")
|
fmt.Fprintln(w, "\tgcloud:\tGCE_PROJECT, 'Application Default Credentials', [GCE_SERVICE_ACCOUNT_FILE]")
|
||||||
fmt.Fprintln(w, "\tglesys:\tGLESYS_API_USER, GLESYS_API_KEY")
|
fmt.Fprintln(w, "\tglesys:\tGLESYS_API_USER, GLESYS_API_KEY")
|
||||||
fmt.Fprintln(w, "\tgodaddy:\tGODADDY_API_KEY, GODADDY_API_SECRET")
|
fmt.Fprintln(w, "\tgodaddy:\tGODADDY_API_KEY, GODADDY_API_SECRET")
|
||||||
fmt.Fprintln(w, "\thostingde:\tHOSTINGDE_API_KEY, HOSTINGDE_ZONE_NAME")
|
fmt.Fprintln(w, "\thostingde:\tHOSTINGDE_API_KEY, HOSTINGDE_ZONE_NAME")
|
||||||
|
|
|
@ -61,7 +61,7 @@ func NewDNSProvider() (*DNSProvider, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use default credentials.
|
// Use default credentials.
|
||||||
project := os.Getenv("GCE_PROJECT")
|
project := env.GetOrDefaultString("GCE_PROJECT", "")
|
||||||
return NewDNSProviderCredentials(project)
|
return NewDNSProviderCredentials(project)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ func NewDNSProviderServiceAccount(saFile string) (*DNSProvider, error) {
|
||||||
|
|
||||||
// If GCE_PROJECT is non-empty it overrides the project in the service
|
// If GCE_PROJECT is non-empty it overrides the project in the service
|
||||||
// account file.
|
// account file.
|
||||||
project := os.Getenv("GCE_PROJECT")
|
project := env.GetOrDefaultString("GCE_PROJECT", "")
|
||||||
if project == "" {
|
if project == "" {
|
||||||
// read project id from service account file
|
// read project id from service account file
|
||||||
var datJSON struct {
|
var datJSON struct {
|
||||||
|
|
Loading…
Reference in a new issue