Skip to content
Extraits de code Groupes Projets
config.ru 677 octets
Newer Older
Benjamin Neff's avatar
Benjamin Neff a validé
#   Copyright (c) 2010-2011, Diaspora Inc.  This file is
Raphael's avatar
Raphael a validé
#   licensed under the Affero General Public License version 3 or later.  See
Raphael's avatar
Raphael a validé
#   the COPYRIGHT file.
Raphael Sofaer's avatar
Raphael Sofaer a validé
# This file is used by Rack-based servers to start the application.

Benjamin Neff's avatar
Benjamin Neff a validé
require ::File.expand_path("../config/environment",  __FILE__)
require ::File.expand_path("../lib/unicorn_killer",  __FILE__)
require ::File.expand_path("../lib/rack/internet_explorer_version", __FILE__)
Benjamin Neff's avatar
Benjamin Neff a validé
# Kill unicorn workers really aggressively (at 300mb)
if defined?(Unicorn)
  use UnicornKiller::Oom, 300 * 1024
end
use Rack::Deflater
Benjamin Neff's avatar
Benjamin Neff a validé
use Rack::InternetExplorerVersion, minimum: 9
David McMullin's avatar
David McMullin a validé
use Rack::Protection::FrameOptions