mirror of
https://github.com/google/nomulus.git
synced 2025-07-21 10:16:07 +02:00
Move the environment configuration YAML files into the main JAR
This allows configuration to work properly from the nomulus tool. TESTED=I built and ran it against several environments, and all worked properly. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=146697124
This commit is contained in:
parent
a904f2c6ee
commit
bf068e61d9
14 changed files with 51 additions and 128 deletions
184
java/google/registry/config/files/default-config.yaml
Normal file
184
java/google/registry/config/files/default-config.yaml
Normal file
|
@ -0,0 +1,184 @@
|
|||
# This is the default configuration file for Nomulus. Do not make changes to it
|
||||
# unless you are writing new features that requires you to. To customize an
|
||||
# individual deployment or environment, create a nomulus-config.yaml file in the
|
||||
# WEB-INF/ directory overriding only the values you wish to change. You may need
|
||||
# to override some of these values to configure and enable some services used in
|
||||
# production environments.
|
||||
|
||||
appEngine:
|
||||
# Globally unique App Engine project ID
|
||||
projectId: registry-project-id
|
||||
|
||||
# Hostname and port of the tools service for the project.
|
||||
toolsServiceUrl:
|
||||
hostName: localhost
|
||||
port: 443
|
||||
|
||||
gSuite:
|
||||
# Publicly accessible domain name of the running G Suite instance.
|
||||
domainName: domain-registry.example
|
||||
|
||||
# Display name and email address used on outgoing emails through G Suite.
|
||||
outgoingEmailDisplayName: Example Registry
|
||||
outgoingEmailAddress: noreply@project-id.appspotmail.com
|
||||
|
||||
# Email address of the admin account on the G Suite app. This is used for
|
||||
# logging in to perform administrative actions, not sending emails.
|
||||
adminAccountEmailAddress: admin@example.com
|
||||
|
||||
registryPolicy:
|
||||
# Repository identifier (ROID) suffix for contacts and hosts.
|
||||
contactAndHostRoidSuffix: ROID
|
||||
|
||||
# Product name of the registry. Used throughout the registrar console.
|
||||
productName: Nomulus
|
||||
|
||||
# Custom logic factory fully-qualified class name.
|
||||
# See flows/custom/CustomLogicFactory.java
|
||||
customLogicFactoryClass: google.registry.flows.custom.CustomLogicFactory
|
||||
|
||||
# WHOIS command factory fully-qualified class name.
|
||||
# See whois/WhoisCommandFactory.java
|
||||
whoisCommandFactoryClass: google.registry.whois.WhoisCommandFactory
|
||||
|
||||
# Length of time after which contact transfers automatically conclude.
|
||||
contactAutomaticTransferDays: 5
|
||||
|
||||
# Server ID used in the 'svID' element of an EPP 'greeting'.
|
||||
greetingServerId: Nomulus Registry
|
||||
|
||||
# List of email addresses that notifications of registrar and/or registrar
|
||||
# contact updates should be sent to, or empty list for no notifications.
|
||||
registrarChangesNotificationEmailAddresses: []
|
||||
|
||||
# Default WHOIS server used when not specified on a registrar.
|
||||
defaultRegistrarWhoisServer: whois.domain-registry.example
|
||||
|
||||
# Default referral URL used when not changed by a registrar.
|
||||
defaultRegistrarReferralUrl: https://www.domain-registry.example
|
||||
|
||||
# Mode TMCH should run in (PRODUCTION for production environments, PILOT for
|
||||
# all others including sandbox).
|
||||
tmchCaMode: PILOT
|
||||
|
||||
# URL for the ICANN TMCH Certificate Revocation List.
|
||||
tmchCrlUrl: http://crl.icann.org/tmch_pilot.crl
|
||||
|
||||
# URL for the MarksDB registry interface.
|
||||
tmchMarksDbUrl: https://test.ry.marksdb.org
|
||||
|
||||
# Registry’s operations registrar, used for front-end availability/premium
|
||||
# domain checks.
|
||||
checkApiServletClientId: TheRegistrar
|
||||
|
||||
# Disclaimer at the top of the exported reserved terms list.
|
||||
reservedTermsExportDisclaimer: |
|
||||
This list contains reserved terms for the TLD. Other terms may be reserved
|
||||
but not included in this list, including terms the registry chooses not
|
||||
to publish, and terms that ICANN commonly mandates to be reserved. This
|
||||
list is subject to change and the most up-to-date source is always to
|
||||
check availability directly with the Registry server.
|
||||
|
||||
# Disclaimer at the top of WHOIS results.
|
||||
whoisDisclaimer: |
|
||||
WHOIS information is provided by the registry solely for query-based,
|
||||
informational purposes. Any information provided is "as is" without any
|
||||
guarantee of accuracy. You may not use such information to (a) allow,
|
||||
enable, or otherwise support the transmission of mass unsolicited,
|
||||
commercial advertising or solicitations; (b) enable high volume, automated,
|
||||
electronic processes that access the registry's systems or any
|
||||
ICANN-Accredited Registrar, except as reasonably necessary to register
|
||||
domain names or modify existing registrations; or (c) engage in or support
|
||||
unlawful behavior. We reserve the right to restrict or deny your access to
|
||||
the WHOIS database, and may modify these terms at any time.
|
||||
|
||||
datastore:
|
||||
# Number of commit log buckets in Datastore. Don't change after initial
|
||||
# install.
|
||||
commitLogBucketsNum: 100
|
||||
|
||||
# Number of EPP resource index buckets in Datastore. Don’t change after
|
||||
# initial install.
|
||||
eppResourceIndexBucketsNum: 997
|
||||
|
||||
# Milliseconds that Objectify waits to retry a Datastore transaction (this
|
||||
# doubles after each failure).
|
||||
baseOfyRetryMillis: 100
|
||||
|
||||
caching:
|
||||
# Length of time that a singleton should be cached before expiring.
|
||||
singletonCacheRefreshSeconds: 600
|
||||
|
||||
# Length of time that a reserved/premium list should be cached before expiring.
|
||||
domainLabelCachingSeconds: 3600
|
||||
|
||||
# Length of time that a long-lived singleton in persist mode should be cached.
|
||||
singletonCachePersistSeconds: 31557600 # This is one year.
|
||||
|
||||
rde:
|
||||
# URL prefix of ICANN's server to upload RDE reports to. Nomulus adds /TLD/ID
|
||||
# to the end of this to construct the full URL.
|
||||
reportUrlPrefix: https://test-ry-api.icann.org:8543/report/registry-escrow-report
|
||||
|
||||
# SFTP URL to which RDE deposits are uploaded. This should contain a username
|
||||
# but not the password.
|
||||
uploadUrl: sftp://username@rde-provider.example
|
||||
|
||||
# Identity of the SSH keys (stored in the Keyring) used for RDE SFTP uploads.
|
||||
sshIdentityEmailAddress: rde@example.com
|
||||
|
||||
registrarConsole:
|
||||
# Filename of the logo to use in the header of the console. This filename is
|
||||
# relative to ui/assets/images/
|
||||
logoFilename: logo.png
|
||||
|
||||
# Contact phone number for support with the registry.
|
||||
supportPhoneNumber: +1 (888) 555 0123
|
||||
|
||||
# Contact email address for support with the registry.
|
||||
supportEmailAddress: support@example.com
|
||||
|
||||
# From: email address used to send announcements from the registry.
|
||||
announcementsEmailAddress: announcements@example.com
|
||||
|
||||
# Contact email address for questions about integrating with the registry.
|
||||
integrationEmailAddress: integration@example.com
|
||||
|
||||
# URL linking to directory of technical support docs on the registry.
|
||||
technicalDocsUrl: http://example.com/your_support_docs/
|
||||
|
||||
monitoring:
|
||||
# Max queries per second for the Google Cloud Monitoring V3 (aka Stackdriver)
|
||||
# API. The limit can be adjusted by contacting Cloud Support.
|
||||
stackdriverMaxQps: 30
|
||||
|
||||
# Max number of points that can be sent to Stackdriver in a single
|
||||
# TimeSeries.Create API call.
|
||||
stackdriverMaxPointsPerRequest: 200
|
||||
|
||||
# How often metrics are exported to BigQuery.
|
||||
writeIntervalSeconds: 60
|
||||
|
||||
misc:
|
||||
# The ID of the Google Sheet (as found in the URL) to export registrar details
|
||||
# to. Leave this null to disable syncing.
|
||||
sheetExportId: null
|
||||
|
||||
rdap:
|
||||
# Base URL (with trailing slash) for RDAP links.
|
||||
baseUrl: http://domain-registry.example/rdap/
|
||||
|
||||
# Braintree is a credit card payment processor that is used on the registrar
|
||||
# console to allow registrars to pay their invoices.
|
||||
braintree:
|
||||
# Merchant ID of the Braintree account.
|
||||
merchantId: example
|
||||
|
||||
# Public key used for accessing Braintree API (this is found on their site).
|
||||
publicKey: example
|
||||
|
||||
# A map of JODA Money CurrencyUnits, specified in three letter ISO-4217
|
||||
# format, to Braintree account IDs (each account is limited to a single
|
||||
# currency). For example, one entry might be:
|
||||
# USD: accountIdUsingUSD
|
||||
merchantAccountIdsMap: {}
|
|
@ -0,0 +1 @@
|
|||
# Add environment-specific configuration here.
|
|
@ -0,0 +1 @@
|
|||
# Add environment-specific configuration here.
|
|
@ -0,0 +1 @@
|
|||
# Add environment-specific configuration here.
|
|
@ -0,0 +1,65 @@
|
|||
# This is a sample production config (to be deployed in the WEB-INF directory).
|
||||
# This is the same as what Google Registry runs in production, except with
|
||||
# placeholders for Google-specific settings.
|
||||
|
||||
appEngine:
|
||||
projectId: placeholder
|
||||
# The "tools-dot-" prefix is used on the project ID in this URL in order to
|
||||
# get around an issue with double-wildcard SSL certs.
|
||||
toolsServiceUrl:
|
||||
hostName: tools-dot-placeholder.appspot.com
|
||||
port: 443
|
||||
|
||||
gSuite:
|
||||
domainName: placeholder
|
||||
outgoingEmailDisplayName: placeholder
|
||||
outgoingEmailAddress: placeholder
|
||||
adminAccountEmailAddress: placeholder
|
||||
|
||||
registryPolicy:
|
||||
contactAndHostRoidSuffix: placeholder
|
||||
productName: placeholder
|
||||
greetingServerId: placeholder
|
||||
registrarChangesNotificationEmailAddresses:
|
||||
- placeholder
|
||||
- placeholder
|
||||
defaultRegistrarWhoisServer: placeholder
|
||||
defaultRegistrarReferralUrl: placeholder
|
||||
tmchCaMode: PRODUCTION
|
||||
tmchCrlUrl: http://crl.icann.org/tmch.crl
|
||||
tmchMarksDbUrl: https://ry.marksdb.org
|
||||
checkApiServletClientId: |
|
||||
multi-line
|
||||
placeholder
|
||||
whoisDisclaimer: |
|
||||
multi-line
|
||||
placeholder
|
||||
|
||||
rde:
|
||||
reportUrlPrefix: https://ry-api.icann.org/report/registry-escrow-report
|
||||
uploadUrl: sftp://placeholder@sftpipm2.ironmountain.com/Outbox
|
||||
sshIdentityEmailAddress: placeholder
|
||||
|
||||
registrarConsole:
|
||||
logoFilename: placeholder
|
||||
supportPhoneNumber: placeholder
|
||||
supportEmailAddress: placeholder
|
||||
announcementsEmailAddress: placeholder
|
||||
integrationEmailAddress: placeholder
|
||||
technicalDocsUrl: https://drive.google.com/drive/folders/placeholder
|
||||
|
||||
misc:
|
||||
sheetExportId: placeholder
|
||||
|
||||
rdap:
|
||||
baseUrl: placeholder
|
||||
|
||||
# You only need to specify this section if using Braintree.
|
||||
braintree:
|
||||
merchantId: placeholder
|
||||
publicKey: placeholder
|
||||
# Only include currencies that you use.
|
||||
merchantAccountIdsMap:
|
||||
EUR: placeholder
|
||||
JPY: placeholder
|
||||
USD: placeholder
|
|
@ -0,0 +1 @@
|
|||
# Add environment-specific configuration here.
|
1
java/google/registry/config/files/nomulus-config-qa.yaml
Normal file
1
java/google/registry/config/files/nomulus-config-qa.yaml
Normal file
|
@ -0,0 +1 @@
|
|||
# Add environment-specific configuration here.
|
|
@ -0,0 +1 @@
|
|||
# Add environment-specific configuration here.
|
|
@ -0,0 +1,30 @@
|
|||
# This is the configuration file used by unit tests. These values ARE NOT
|
||||
# SUITABLE for use in a real deployed environment.
|
||||
|
||||
appEngine:
|
||||
# Tests can't fire up a full server, so make them error out if they try to.
|
||||
toolsServiceUrl:
|
||||
hostName: null
|
||||
port: 0
|
||||
|
||||
registryPolicy:
|
||||
registrarChangesNotificationEmailAddresses:
|
||||
- notification@test.example
|
||||
- notification2@test.example
|
||||
defaultRegistrarWhoisServer: whois.nic.fakewhois.example
|
||||
defaultRegistrarReferralUrl: http://www.referral.example/path
|
||||
|
||||
datastore:
|
||||
commitLogBucketsNum: 3
|
||||
eppResourceIndexBucketsNum: 3
|
||||
baseOfyRetryMillis: 0
|
||||
|
||||
caching:
|
||||
singletonCacheRefreshSeconds: 0
|
||||
domainLabelCachingSeconds: 0
|
||||
singletonCachePersistSeconds: 0
|
||||
|
||||
braintree:
|
||||
merchantAccountIdsMap:
|
||||
USD: accountIdUsd
|
||||
JPY: accountIdJpy
|
Loading…
Add table
Add a link
Reference in a new issue