From 68315e8bb7da2a0cc8df1c22f3cce4753cd33798 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Wed, 8 Mar 2017 11:30:47 -0800 Subject: [PATCH] Delete config.ru --- website/config.ru | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 website/config.ru diff --git a/website/config.ru b/website/config.ru deleted file mode 100644 index 58349c801..000000000 --- a/website/config.ru +++ /dev/null @@ -1,38 +0,0 @@ -require "rack" -require "rack/contrib/not_found" -require "rack/contrib/response_headers" -require "rack/contrib/static_cache" -require "rack/contrib/try_static" -require "rack/protection" - -# Protect against various bad things -use Rack::Protection::JsonCsrf -use Rack::Protection::RemoteReferrer -use Rack::Protection::HttpOrigin -use Rack::Protection::EscapedParams -use Rack::Protection::XSSHeader -use Rack::Protection::FrameOptions -use Rack::Protection::PathTraversal -use Rack::Protection::IPSpoofing - -# Properly compress the output if the client can handle it. -use Rack::Deflater - -# Set the "forever expire" cache headers for these static assets. Since -# we hash the contents of the assets to determine filenames, this is safe -# to do. -use Rack::StaticCache, - :root => "build", - :urls => ["/assets", "/javascripts"], - :duration => 2, - :versioning => false - -# Try to find a static file that matches our request, since Middleman -# statically generates everything. -use Rack::TryStatic, - :root => "build", - :urls => ["/"], - :try => [".html", "index.html", "/index.html"] - -# 404 if we reached this point. Sad times. -run Rack::NotFound.new(File.expand_path("../build/404.html", __FILE__))