Added registrant database example

This commit is contained in:
Priit Tark 2015-05-18 12:51:10 +03:00
parent e1d596f3d3
commit 7d0365974e
5 changed files with 94 additions and 40 deletions

View file

@ -1,3 +1,7 @@
18.05.2015
* Added Registrant database example file: config/database-example-registrant.yml
16.05.2015 16.05.2015
* Security config update. Please replace all Location and RedirectMatch * Security config update. Please replace all Location and RedirectMatch

View file

@ -0,0 +1,23 @@
default: &default
host: localhost
adapter: postgresql
encoding: unicode
pool: 5
username: registry
password: registry_pwd
development:
<<: *default
database: registry_development
whois_development:
<<: *default
database: registry_whois_development
api_log_development:
<<: *default
database: registry_api_log_development
registrant_write_development:
<<: *default
database: registry_development

View file

@ -0,0 +1,52 @@
#
# Registrant config
#
# Registrant should:
# * only read registry mirror database.
# * only write to registry table 'registrant_verification'
default: &default
host: localhost
adapter: postgresql
encoding: unicode
pool: 5
username: registry
password: registry_pwd
#
# Staging config for Registrant
#
staging:
<<: *default
database: registry_staging # registry staging mirror
host: localhost
username: registrant_read_only
password: registrant_read_only_pwd
registrant_write_staging:
<<: *default
database: registry_development # registry real database
host: localhost
username: registrant_write # user should have write access only to registrant_verifications table
password: registrant_write_pwd
#
# Production config for Registrant
#
production:
<<: *default
database: registry_production # registry production mirror database name
host: localhost # registry production mirror location
username: registrant_read_only
password: registrant_read_only_pwd
registrant_write_production:
<<: *default
database: registry_production # registry production database name
host: localhost # registry database location
username: registrant_write # user should have write access only to registrant_verifications table
password: registrant_write_pwd

View file

@ -1,3 +1,8 @@
#
# EPP, REPP, Admin and Registrar config
#
# Registrant example is at database-example-registrant.yml file
default: &default default: &default
host: localhost host: localhost
adapter: postgresql adapter: postgresql
@ -6,45 +11,9 @@ default: &default
username: registry username: registry
password: registry_pwd password: registry_pwd
#
development: # Staging config For EPP, REPP, Admin, Registrar
<<: *default #
database: registry_development
whois_development:
<<: *default
database: registry_whois_development
api_log_development:
<<: *default
database: registry_api_log_development
test:
<<: *default
database: registry_test
whois_test:
<<: *default
database: registry_whois_test
api_log_test:
<<: *default
database: registry_api_log_test
alpha:
<<: *default
database: registry_alpha
whois_alpha:
<<: *default
database: registry_whois_alpha
api_log_alpha:
<<: *default
database: registry_api_log_alpha
staging: staging:
<<: *default <<: *default
@ -58,7 +27,9 @@ api_log_staging:
<<: *default <<: *default
database: registry_api_log_staging database: registry_api_log_staging
#
# Production config For EPP, REPP, Admin, Registrar
#
production: production:
<<: *default <<: *default
database: registry_production database: registry_production

View file

@ -17,3 +17,7 @@ whois_test:
api_log_test: api_log_test:
<<: *default <<: *default
database: registry_api_log_test database: registry_api_log_test
registrant_write_test:
<<: *default
database: registry_test