Skip to content
Extraits de code Groupes Projets
config.ru 759 octets
Newer Older
  • Learn to ignore specific revisions
  • 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/rack/internet_explorer_version", __FILE__)
    
    Benjamin Neff's avatar
    Benjamin Neff a validé
    # Kill unicorn workers really aggressively (at 300mb)
    
      require "unicorn/worker_killer"
      oom_min = (280) * (1024**2)
      oom_max = (300) * (1024**2)
      # Max memory size (RSS) per worker
      use Unicorn::WorkerKiller::Oom, oom_min, oom_max
    
    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