use rails credentials for smtp creds
This commit is contained in:
@@ -57,16 +57,16 @@ Rails.application.configure do
|
||||
# config.action_mailer.raise_delivery_errors = false
|
||||
|
||||
# Set host to be used by links generated in mailer templates.
|
||||
config.action_mailer.default_url_options = { host: "example.com" }
|
||||
config.action_mailer.default_url_options = { host: "sanasto.rin.no" }
|
||||
|
||||
# Specify outgoing SMTP server. Remember to add smtp/* credentials via bin/rails credentials:edit.
|
||||
# config.action_mailer.smtp_settings = {
|
||||
# user_name: Rails.application.credentials.dig(:smtp, :user_name),
|
||||
# password: Rails.application.credentials.dig(:smtp, :password),
|
||||
# address: "smtp.example.com",
|
||||
# port: 587,
|
||||
# authentication: :plain
|
||||
# }
|
||||
config.action_mailer.smtp_settings = {
|
||||
user_name: Rails.application.credentials.dig(:smtp, :user_name),
|
||||
password: Rails.application.credentials.dig(:smtp, :password),
|
||||
address: "mail.soverein.no",
|
||||
port: 587,
|
||||
authentication: :plain
|
||||
}
|
||||
|
||||
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
||||
# the I18n.default_locale when a translation cannot be found).
|
||||
|
||||
Reference in New Issue
Block a user