From c3cef699ca5ff507fc7d9a1defd4129712561bc3 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Fri, 19 Oct 2018 16:49:28 +0100 Subject: [PATCH] Use https on all links in emails in production --- config/environments/production.rb | 3 +++ config/environments/staging.rb | 3 +++ 2 files changed, 6 insertions(+) diff --git a/config/environments/production.rb b/config/environments/production.rb index 229221e118..0ee6be4930 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -30,6 +30,9 @@ Openfoodnetwork::Application.configure do # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. config.force_ssl = true + # Use https when creating links in emails + config.action_mailer.default_url_options = { protocol: 'https' } + # See everything in the log (default is :info) config.log_level = :info diff --git a/config/environments/staging.rb b/config/environments/staging.rb index 303d7d2913..9c7a40e8e1 100644 --- a/config/environments/staging.rb +++ b/config/environments/staging.rb @@ -30,6 +30,9 @@ Openfoodnetwork::Application.configure do # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. config.force_ssl = true + # Use https when creating links in emails + config.action_mailer.default_url_options = { protocol: 'https' } + # See everything in the log (default is :info) # config.log_level = :debug