Return the missing mailer setup
This commit is contained in:
parent
c052f59b0a
commit
3980125872
1 changed files with 11 additions and 0 deletions
|
|
@ -70,6 +70,17 @@ Rails.application.configure do
|
||||||
config.logger = ActiveSupport::TaggedLogging.new(logger)
|
config.logger = ActiveSupport::TaggedLogging.new(logger)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
config.action_mailer.smtp_settings = {
|
||||||
|
address: ENV['OSEM_SMTP_ADDRESS'],
|
||||||
|
port: ENV['OSEM_SMTP_PORT'],
|
||||||
|
user_name: ENV['OSEM_SMTP_USERNAME'],
|
||||||
|
password: ENV['OSEM_SMTP_PASSWORD'],
|
||||||
|
authentication: ENV['OSEM_SMTP_AUTHENTICATION'].try(:to_sym),
|
||||||
|
domain: ENV['OSEM_SMTP_DOMAIN'],
|
||||||
|
enable_starttls_auto: ENV['OSEM_SMTP_ENABLE_STARTTLS_AUTO'],
|
||||||
|
openssl_verify_mode: ENV['OSEM_SMTP_OPENSSL_VERIFY_MODE']
|
||||||
|
}.compact
|
||||||
|
|
||||||
# Do not dump schema after migrations.
|
# Do not dump schema after migrations.
|
||||||
config.active_record.dump_schema_after_migration = false
|
config.active_record.dump_schema_after_migration = false
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue