From 2bacd84654e54d7bee3f6d8d3aeac6cc1273ecee Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Fri, 13 Sep 2024 22:22:43 +0300 Subject: [PATCH] Assume SSL --- config/environments/production.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index f925da5..929748b 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -46,14 +46,14 @@ Rails.application.configure do # Assume all access to the app is happening through a SSL-terminating reverse proxy. # Can be used together with config.force_ssl for Strict-Transport-Security and secure cookies. - # config.assume_ssl = true + config.assume_ssl = true # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. config.force_ssl = ENV["CLARION_USE_PLAINTEXT"] != "yes" # Log to STDOUT by default config.logger = ActiveSupport::Logger.new(STDOUT) - .tap { |logger| logger.formatter = ::Logger::Formatter.new } + .tap { |logger| logger.formatter = ::Logger::Formatter.new } .then { |logger| ActiveSupport::TaggedLogging.new(logger) } # Prepend all log lines with the following tags.