Skip to content

Commit

Permalink
Merge pull request #237 from unboxed/force-ssl
Browse files Browse the repository at this point in the history
Force SSL connections in production
  • Loading branch information
pixeltrix authored Nov 11, 2024
2 parents 748b34c + 6c3988a commit 5777718
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,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

# Use the lowest log level to ensure availability of diagnostic information
# when problems arise.
Expand All @@ -63,7 +63,7 @@
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
# config.action_mailer.raise_delivery_errors = false

config.action_mailer.default_url_options = { host: ENV.fetch("APPLICATION_HOST") }
config.action_mailer.default_url_options = { host: ENV.fetch("APPLICATION_HOST"), protocol: "https://" }

# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation cannot be found).
Expand Down

0 comments on commit 5777718

Please sign in to comment.