mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 09:27:19 +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
|
||||
|
||||
* 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.
|
||||
smtp_authentication: 'plain' # 'plain', 'login', 'cram_md5'
|
||||
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
|
||||
|
|
|
@ -1,20 +1,13 @@
|
|||
TEST_EMAILS = %w(
|
||||
timo.vohmar@internet.ee
|
||||
timo.vohmar@eestiinternet.ee
|
||||
rene.vahtel@internet.ee
|
||||
martin.mettig@internet.ee
|
||||
hannes.klausen@internet.ee
|
||||
georg.kahest@internet.ee
|
||||
norman.aeg@internet.ee
|
||||
martti.oigus@internet.ee
|
||||
jana.jarve@internet.ee
|
||||
martin@gitlab.eu
|
||||
priit@gitlab.eu
|
||||
info@gitlab.eu
|
||||
test@example.com
|
||||
test@example.org
|
||||
old@example.org
|
||||
new@example.org
|
||||
old@example.com
|
||||
new@example.com
|
||||
)
|
||||
TEST_EMAILS =
|
||||
if Rails.env.test?
|
||||
%w(
|
||||
test@example.com
|
||||
test@example.org
|
||||
old@example.org
|
||||
new@example.org
|
||||
old@example.com
|
||||
new@example.com
|
||||
)
|
||||
else
|
||||
ENV['whitelist_emails_for_staging'].split(',').map(&:strip)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue