mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 09:12:35 +02:00
potential fix for ClientShutdown exceptions
This commit is contained in:
parent
e1a4c4b5c9
commit
ce110f4101
1 changed files with 5 additions and 1 deletions
|
@ -1,11 +1,15 @@
|
|||
require 'rubygems'
|
||||
require './app.rb'
|
||||
require 'sidekiq/web'
|
||||
require 'unicorn/preread_input'
|
||||
|
||||
if defined?(Unicorn)
|
||||
use Unicorn::PrereadInput
|
||||
end
|
||||
|
||||
map('/') { run Sinatra::Application }
|
||||
|
||||
map '/webdav' do
|
||||
|
||||
use Rack::Auth::Basic do |username, password|
|
||||
Site.valid_login? username, password
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue