Skip to content

Commit

Permalink
Fix protocol error for mail redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
frocher committed Feb 17, 2021
1 parent 658aaad commit d41c1d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Application < Rails::Application
config.asset_host = ENV.fetch("ASSET_HOST") { "#{protocol}://#{http_host}:#{http_port}" }

# Mailer
config.action_mailer.default_url_options = { host: http_host, port: http_port }
config.action_mailer.default_url_options = { host: http_host, protocol: protocol, port: http_port }
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = { address: smtp_host, port: smtp_port, enable_starttls_auto: false }

Expand Down

0 comments on commit d41c1d0

Please sign in to comment.