config.ru 598 Bytes
Newer Older
Raphael's avatar
Raphael committed
1
#   Copyright (c) 2010, Diaspora Inc.  This file is
Raphael's avatar
Raphael committed
2
#   licensed under the Affero General Public License version 3 or later.  See
Raphael's avatar
Raphael committed
3
#   the COPYRIGHT file.
4

Raphael Sofaer's avatar
Raphael Sofaer committed
5 6 7
# This file is used by Rack-based servers to start the application.

require ::File.expand_path('../config/environment',  __FILE__)
8
require ::File.expand_path('../lib/chrome_frame', __FILE__)
9 10 11 12 13 14
require 'lib/host-meta'
#use Rack::FiberPool

map "/.well-known" do
  run HostMeta::File.new( "public/well-known")
end
15 16 17 18 19 20

map AppConfig[:pod_uri].path  do
  use Rack::ChromeFrame, :minimum => 8
  use Rack::ShowExceptions
  run Diaspora::Application
end