mirror of
https://github.com/google/nomulus.git
synced 2025-06-27 06:44:51 +02:00
Add config parameters to point at us to use cloud-dns staging
Add cloudDns.{rootUrl, servicePath} to allow us to point an environment at the Cloud DNS staging API for testing. Make sandbox and alpha point to staging. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=170340859
This commit is contained in:
parent
d4ab6fe90b
commit
d09bd89629
4 changed files with 43 additions and 4 deletions
|
@ -331,6 +331,18 @@ public final class RegistryConfig {
|
|||
return config.datastore.eppResourceIndexBucketsNum;
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Config("cloudDnsRootUrl")
|
||||
public static Optional<String> getCloudDnsRootUrl(RegistryConfigSettings config) {
|
||||
return Optional.fromNullable(config.cloudDns.rootUrl);
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Config("cloudDnsServicePath")
|
||||
public static Optional<String> getCloudDnsServicePath(RegistryConfigSettings config) {
|
||||
return Optional.fromNullable(config.cloudDns.servicePath);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns size of Google Cloud Storage client connection buffer in bytes.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue