Skip to content

Commit

Permalink
Allow configuration of Rack's key_space_limit
Browse files Browse the repository at this point in the history
  • Loading branch information
darnaut committed Apr 28, 2021
1 parent 8ae0957 commit 46a6f28
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ if opts['gc_stats']
end
end

# Rack options
if opts['rack']
key_space_limit = opts['rack']['key_space_limit']
Rack::Utils.key_space_limit = key_space_limit if key_space_limit
end

# prepare statsd
require 'datadog/statsd'
STATSD = Datadog::Statsd.new(opts['statsd_host'], opts['statsd_port'])
Expand Down

0 comments on commit 46a6f28

Please sign in to comment.