瀏覽代碼

Production will always use https.

Andrew Swistak 6 年之前
父節點
當前提交
23bf0af327
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      config/environments/production.rb

+ 1 - 1
config/environments/production.rb

@@ -48,7 +48,7 @@ Rails.application.configure do
   # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
   # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
 
 
   # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
   # 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
   # Use the lowest log level to ensure availability of diagnostic information
   # when problems arise.
   # when problems arise.