Sha256: a92159926fcd32def9f05c8996e2b3dfb01899859271f1a2f413f2ce50d3b243
Contents?: true
Size: 777 Bytes
Versions: 4
Compression:
Stored size: 777 Bytes
Contents
# Load gem files Conf.log :init, "rackup: project code" 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" # Rack authent Conf.log :init, "rackup: rack setup" 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, root: "#{Conf.app_libs}/static/", urls: [ "/css/", "/js/", "/fonts/", "/images/", "/swagger/", MOUNT_SWAGGER_UI, ] # Rack reloader if Conf.app_env == "development" # use Rack::Reloader, 1 end # Launch the API Conf.log :init, "rackup: start endpoint" run RestFtpDaemon::API::Root
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rest-ftp-daemon-0.433.0 | config.ru |
rest-ftp-daemon-0.432.0 | config.ru |
rest-ftp-daemon-0.430.1 | config.ru |
rest-ftp-daemon-0.430.0 | config.ru |