diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-02-25 09:42:30 +0530 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-02-25 09:42:30 +0530 |
commit | 00c4ecf38c303210ceb869cfc6d4c1f9f05b8050 (patch) | |
tree | 8db1b21bf57294be3d7bca0bc8b8ad4d66f63696 | |
parent | 6eb3a1b0587cbad20b180a9d6c7b3a5fbcc91e8b (diff) | |
download | rails-00c4ecf38c303210ceb869cfc6d4c1f9f05b8050.tar.gz rails-00c4ecf38c303210ceb869cfc6d4c1f9f05b8050.tar.bz2 rails-00c4ecf38c303210ceb869cfc6d4c1f9f05b8050.zip |
New applications will be generated with ssl_options to enable HSTS with subdomains
- We will reuse config.ssl_options for setting the HSTS settings.
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/initializers/ssl_options.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/initializers/ssl_options.rb b/railties/lib/rails/generators/rails/app/templates/config/initializers/ssl_options.rb new file mode 100644 index 0000000000..1775dea1e7 --- /dev/null +++ b/railties/lib/rails/generators/rails/app/templates/config/initializers/ssl_options.rb @@ -0,0 +1,4 @@ +# Be sure to restart your server when you modify this file. + +# Configure SSL options to enable HSTS with subdomains. +Rails.application.config.ssl_options = { hsts: { subdomains: true } } |