Commit 2c4fc55d2eb07680b5658a2fba7772e588fc2a8d
1 parent
18629f26
Exists in
master
and in
1 other branch
Set protocol https if enforce SSL connections configured
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
config/initializers/ssl_enforcer.rb
| 1 | -# | ||
| 2 | # Enforce SSL connections, if configured | 1 | # Enforce SSL connections, if configured |
| 3 | if Errbit::Config.enforce_ssl | 2 | if Errbit::Config.enforce_ssl |
| 3 | + ActionMailer::Base.default_url_options.merge!(:protocol => 'https://') | ||
| 4 | Errbit::Application.configure do | 4 | Errbit::Application.configure do |
| 5 | config.middleware.use Rack::SslEnforcer, :except => /^\/deploys/ | 5 | config.middleware.use Rack::SslEnforcer, :except => /^\/deploys/ |
| 6 | end | 6 | end |