Skip to content

Commit

Permalink
Merge pull request #2275 from manyfold3d/force-ssl
Browse files Browse the repository at this point in the history
Add FORCE_HTTPS env option to force secure-only connections
  • Loading branch information
Floppy authored Jun 18, 2024
2 parents d4bc9e2 + aa87154 commit 13c84ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,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 = (ENV.fetch("HTTPS_ONLY", nil) === "enabled")

# Include generic and useful information about system operation, but avoid logging too much
# information to avoid inadvertent exposure of personally identifiable information (PII).
Expand Down

0 comments on commit 13c84ed

Please sign in to comment.