Skip to content

Commit

Permalink
make ssl disableable
Browse files Browse the repository at this point in the history
Co-authored-by: Joakim Kolsjö <[email protected]>
  • Loading branch information
p-wall and joakimk committed Jun 13, 2024
1 parent 73fcd0c commit 084dd3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@
config.action_cable.allowed_request_origins = [ production_hosts ]

# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true
unless ENV["DISABLE_SSL"]
config.force_ssl = true
end

# 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 084dd3d

Please sign in to comment.