mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Possible to define whitelist emails
This commit is contained in:
parent
e5d03e3cdf
commit
ef9048edb0
3 changed files with 20 additions and 20 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
11.08.2015
|
||||||
|
|
||||||
|
* Possible to add whitelist_emails_for_staging list at application.yml
|
||||||
|
|
||||||
21.07.2015
|
21.07.2015
|
||||||
|
|
||||||
* Possible to define custom trusted proxies at application.yml
|
* Possible to define custom trusted proxies at application.yml
|
||||||
|
|
|
@ -22,6 +22,9 @@ smtp_enable_starttls_auto: 'true' # 'false'
|
||||||
# If your mail server requires authentication, please change.
|
# If your mail server requires authentication, please change.
|
||||||
smtp_authentication: 'plain' # 'plain', 'login', 'cram_md5'
|
smtp_authentication: 'plain' # 'plain', 'login', 'cram_md5'
|
||||||
registrant_url: 'https:/registrant.example.com' # for valid email body registrant links
|
registrant_url: 'https:/registrant.example.com' # for valid email body registrant links
|
||||||
|
whitelist_emails_for_staging: >
|
||||||
|
test@example.org, old@example.org,
|
||||||
|
new@example.org, old@example.com, new@example.com
|
||||||
|
|
||||||
#
|
#
|
||||||
# ADMIN server
|
# ADMIN server
|
||||||
|
|
|
@ -1,20 +1,13 @@
|
||||||
TEST_EMAILS = %w(
|
TEST_EMAILS =
|
||||||
timo.vohmar@internet.ee
|
if Rails.env.test?
|
||||||
timo.vohmar@eestiinternet.ee
|
%w(
|
||||||
rene.vahtel@internet.ee
|
test@example.com
|
||||||
martin.mettig@internet.ee
|
test@example.org
|
||||||
hannes.klausen@internet.ee
|
old@example.org
|
||||||
georg.kahest@internet.ee
|
new@example.org
|
||||||
norman.aeg@internet.ee
|
old@example.com
|
||||||
martti.oigus@internet.ee
|
new@example.com
|
||||||
jana.jarve@internet.ee
|
)
|
||||||
martin@gitlab.eu
|
else
|
||||||
priit@gitlab.eu
|
ENV['whitelist_emails_for_staging'].split(',').map(&:strip)
|
||||||
info@gitlab.eu
|
end
|
||||||
test@example.com
|
|
||||||
test@example.org
|
|
||||||
old@example.org
|
|
||||||
new@example.org
|
|
||||||
old@example.com
|
|
||||||
new@example.com
|
|
||||||
)
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue