summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2019-08-17 13:34:55 -0600
committermo khan <mo@mokhan.ca>2019-08-17 13:34:55 -0600
commit326b157456b2432cc340b07a74ea04eca420a00a (patch)
tree7dd28763a8ae1df1c50fea8f9eef1458294818eb
parenta4af5919895ce45a58676c20aeac7f442d033ff7 (diff)
force_ssl in production
-rw-r--r--app/controllers/metadata_controller.rb5
-rw-r--r--config/environments/production.rb2
2 files changed, 1 insertions, 6 deletions
diff --git a/app/controllers/metadata_controller.rb b/app/controllers/metadata_controller.rb
index cf3a09e..05dd69c 100644
--- a/app/controllers/metadata_controller.rb
+++ b/app/controllers/metadata_controller.rb
@@ -1,7 +1,6 @@
# frozen_string_literal: true
class MetadataController < ApplicationController
- force_ssl if: :ssl_configured?
skip_before_action :authenticate!
def show
@@ -15,8 +14,4 @@ class MetadataController < ApplicationController
Idp.default(request).to_xml
end
end
-
- def ssl_configured?
- Rails.env.production?
- end
end
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 1a367f1..a55bab9 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -57,7 +57,7 @@ Rails.application.configure do
# Force all access to the app over SSL, use Strict-Transport-Security,
# and use secure cookies.
- # config.force_ssl = true
+ config.force_ssl = true
# Use the lowest log level to ensure availability of diagnostic information
# when problems arise.