Skip to content

Commit

Permalink
assume ssl true, force false
Browse files Browse the repository at this point in the history
  • Loading branch information
Nils Bartels committed Dec 20, 2023
1 parent 2004e3e commit 619b1f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ class Application < Rails::Application
config.action_controller.perform_caching = true
config.action_controller.enable_fragment_cache_logging = true

config.sass.preferred_syntax = :scss
config.sass.line_comments = false
config.sass.cache = false

config.after_initialize do
if ENV["SECRET_KEY_BASE_DUMMY"] != "1"
ReservationsCleanupJob.perform_later
Expand Down
4 changes: 2 additions & 2 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@

# Assume all access to the app is happening through a SSL-terminating reverse proxy.
# Can be used together with config.force_ssl for Strict-Transport-Security and secure cookies.
# config.assume_ssl = true
config.assume_ssl = true

# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true
config.force_ssl = false

# Log to STDOUT by default
config.logger = ActiveSupport::Logger.new(STDOUT)
Expand Down

0 comments on commit 619b1f2

Please sign in to comment.