force ssl for production

This commit is contained in:
joshua stein 2012-07-03 13:35:30 -05:00
parent a5eead5852
commit 216d483b98
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ Lobsters::Application.configure do
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
# config.force_ssl = true
config.force_ssl = true
# See everything in the log (default is :info)
# config.log_level = :debug

View file

@ -1,5 +1,5 @@
Lobsters::Application.routes.draw do
root :to => "home#index"
root :to => "home#index", :protocol => "https://"
get "/newest(.format)" => "home#newest"