Skip to content
Snippets Groups Projects
Commit d90ea0e0 authored by Teal's avatar Teal
Browse files

ssl & host stuff

parent 9c281542
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ class ApplicationController < ActionController::Base
helper_method :current_user
def default_url_options
{ host: 'rescheduled.c3lingo.org' }
{ host: 'rescheduled.c3lingo.org', protocol: 'https' } if Rails.env.production?
end
private
......
......@@ -46,7 +46,7 @@ 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 = true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment