Explicitly add :host to actionmailer config

This commit is contained in:
Matt-Yorkley
2018-10-26 22:42:47 +01:00
parent c3cef699ca
commit f3124e5472
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ Openfoodnetwork::Application.configure do
config.force_ssl = true
# Use https when creating links in emails
config.action_mailer.default_url_options = { protocol: 'https' }
config.action_mailer.default_url_options = { protocol: 'https', host: Spree::Config[:site_url] }
# See everything in the log (default is :info)
config.log_level = :info

View File

@@ -31,7 +31,7 @@ Openfoodnetwork::Application.configure do
config.force_ssl = true
# Use https when creating links in emails
config.action_mailer.default_url_options = { protocol: 'https' }
config.action_mailer.default_url_options = { protocol: 'https', host: Spree::Config[:site_url] }
# See everything in the log (default is :info)
# config.log_level = :debug