Sha256: 097a8de1728ed9a223a74e25281f14717db4d8918a3178bcb3bbd730c8e3196b
Contents?: true
Size: 939 Bytes
Versions: 4
Compression:
Stored size: 939 Bytes
Contents
# Load gem files # load_path_libs = File.expand_path(File.join(File.dirname(__FILE__), "lib")) load_path_libs = File.expand_path "lib", File.dirname(__FILE__) $LOAD_PATH.unshift(load_path_libs) unless $LOAD_PATH.include?(load_path_libs) require "rest-ftp-daemon" # Create global queue $queue = RestFtpDaemon::JobQueue.new # Create global counters $counters = RestFtpDaemon::Counters.new # Initialize workers and conchita subsystem $pool = RestFtpDaemon::WorkerPool.new # Rack authent unless Conf[:adminpwd].nil? use Rack::Auth::Basic, "Restricted Area" do |username, password| [username, password] == ["admin", Conf[:adminpwd]] end end # Serve static assets use Rack::Static, urls: ["/css", "/js", "/images"], root: "#{Conf.app_libs}/static/" # Rack reloader and mini-profiler unless Conf.app_env == "production" # use Rack::Reloader, 1 # use Rack::MiniProfiler end # Launch the main daemon run RestFtpDaemon::API::Root
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rest-ftp-daemon-0.302.3 | config.ru |
rest-ftp-daemon-0.302.2 | config.ru |
rest-ftp-daemon-0.302.1 | config.ru |
rest-ftp-daemon-0.302.0 | config.ru |