mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 21:54:48 +02:00
Remove hardcoded default email sender
And make it configurable via `action_mailer_default_from` config. Closes #243
This commit is contained in:
parent
6a61d7de5b
commit
a113d75ec5
5 changed files with 21 additions and 1 deletions
|
@ -145,6 +145,7 @@ auction_api_allowed_ips: '' # 192.0.2.0, 192.0.2.1
|
|||
action_mailer_default_protocol: # default: http
|
||||
action_mailer_default_host:
|
||||
action_mailer_default_port: # default: no port (80)
|
||||
action_mailer_default_from: # no-reply@example.com
|
||||
|
||||
# Since the keys for staging are absent from the repo, we need to supply them separate for testing.
|
||||
test:
|
||||
|
@ -153,6 +154,7 @@ test:
|
|||
release_domains_to_auction: 'false'
|
||||
auction_api_allowed_ips: ''
|
||||
action_mailer_default_host: 'registry.test'
|
||||
action_mailer_default_from: 'no-reply@registry.test'
|
||||
|
||||
# Airbrake // Errbit:
|
||||
airbrake_host: "https://your-errbit-host.ee"
|
||||
|
|
|
@ -90,6 +90,7 @@ module DomainNameRegistry
|
|||
domain: ENV['smtp_domain'],
|
||||
openssl_verify_mode: ENV['smtp_openssl_verify_mode']
|
||||
}
|
||||
config.action_mailer.default_options = { from: ENV['action_mailer_default_from'] }
|
||||
|
||||
config.action_view.default_form_builder = 'DefaultFormBuilder'
|
||||
config.secret_key_base = Figaro.env.secret_key_base
|
||||
|
|
|
@ -12,4 +12,5 @@ Figaro.require_keys(%w[
|
|||
bank_statement_import_dir
|
||||
time_zone
|
||||
action_mailer_default_host
|
||||
action_mailer_default_from
|
||||
])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue