From 46a6f2899ba2d4d830850f7afd18f50731544617 Mon Sep 17 00:00:00 2001 From: Davi Arnaut Date: Tue, 27 Apr 2021 17:24:46 -0700 Subject: [PATCH] Allow configuration of Rack's key_space_limit --- config.ru | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config.ru b/config.ru index 26597b1..d7c90dd 100644 --- a/config.ru +++ b/config.ru @@ -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'])