mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Added registrant database example
This commit is contained in:
parent
e1d596f3d3
commit
7d0365974e
5 changed files with 94 additions and 40 deletions
|
@ -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
|
||||||
|
|
23
config/database-example-development.yml
Normal file
23
config/database-example-development.yml
Normal 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
|
52
config/database-example-registrant.yml
Normal file
52
config/database-example-registrant.yml
Normal 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
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue