diff --git a/config/environments/development.rb b/config/environments/development.rb index cb6c2fe..f6e360a 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -51,6 +51,33 @@ Rails.application.configure do # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "wedding_#{Rails.env}" + config.read_encrypted_secrets = true + config.action_mailer.perform_deliveries = true + config.action_mailer.delivery_method = :smtp + config.action_mailer.perform_caching = false + + # Ignore bad email addresses and do not raise email delivery errors. + # Set this to true and configure the email server for immediate delivery to raise delivery errors. + config.action_mailer.raise_delivery_errors = true + + config.action_mailer.default_url_options = { + host: ENV['CANONICAL_HOST'], + protocol: ENV['CANONICAL_HOST_PROTOCOL'] || 'https' + } + + config.action_mailer.smtp_settings = { + address: ENV['SMTP_ADDRESS'], + port: (ENV['SMTP_PORT'] || 587).to_i, + domain: ENV['SMTP_DOMAIN'], + user_name: ENV['SMTP_USER_NAME'], + password: ENV['SMTP_PASSWORD'], + authentication: 'plain', + enable_starttls_auto: true + } + # Store uploaded files on the local file system (see config/storage.yml for options) config.active_storage.service = :local