Skip to content

Commit

Permalink
Add force_ssl option to avoid brakeman to return a high warning
Browse files Browse the repository at this point in the history
  • Loading branch information
isay-sosa committed Aug 19, 2019
1 parent 60b8110 commit d48d3b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions Gemfile
Expand Up @@ -17,18 +17,16 @@ gem 'turbolinks', '~> 5'
gem 'uglifier', '>= 1.3.0'

group :development, :test do
gem "brakeman"
gem "bundle-audit"
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
end

group :development do
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'brakeman'
gem 'bundle-audit'
gem 'listen', '>= 3.0.5', '< 3.2'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
gem 'web-console', '>= 3.3.0'
end

group :test do
Expand Down
2 changes: 1 addition & 1 deletion config/environments/production.rb
Expand Up @@ -47,7 +47,7 @@
# 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.
# config.force_ssl = true
config.force_ssl = true if ENV['USE_FORCE_SSL']

# Use the lowest log level to ensure availability of diagnostic information
# when problems arise.
Expand Down

0 comments on commit d48d3b6

Please sign in to comment.