mirror of
https://github.com/google/nomulus
synced 2026-05-21 07:11:48 +00: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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user