Skip to content

Commit

Permalink
Merge pull request #50886 from code-dot-org/add-dcdo-flag-for-unicorn…
Browse files Browse the repository at this point in the history
…-middleware

Add a Temporary DCDO Flag for Unicorn-Specific Middleware
  • Loading branch information
Hamms committed Mar 30, 2023
2 parents 704c0fb + 9ff0d4b commit d3197a7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions dashboard/config.ru
Expand Up @@ -17,8 +17,15 @@ unless rack_env?(:development)
}
end

require 'gctools/oobgc/unicorn_middleware'
use GC::OOB::UnicornMiddleware
# Temporarily wrap this unicorn-specific middleware in a DCDO flag so we can
# evaluate whether or not this still has a performance impact now that we're no
# longer using unicorn.
# TODO: either remove the flag or this entire block, depending on the results
unless DCDO.get('oobgc_unicorn_middleware_disabled', false)
require 'gctools/oobgc/unicorn_middleware'
use GC::OOB::UnicornMiddleware
end

use Rack::ContentLength
require 'rack/ssl-enforcer'
use Rack::SslEnforcer,
Expand Down

0 comments on commit d3197a7

Please sign in to comment.