#droppy A modern, node-based file server web application utilizing WebSockets for realtime updates. It supports dropping one or more files into the window, and with Chrome, directories can be recursively uploaded.
##Installation With node installed, run:
git clone https://github.com/silverwind/droppy.git && cd droppy && npm install
##Usage To start the server, run either
node droppy
or just
./droppy.js
By default, the server will listen on https, which can be configured in config.json. On first startup, a user droppy with password droppy will be created. To add more users, run ./droppy.js -adduser username password. To remove users, edit db.json (for now).
##Supported Browsers
- Firefox (last 2 versions)
- Chrome (last 2 versions)
- Internet Explorer 10 or higher
In case of Chrome and Firefox, slightly older versions may work resonably well.
##Configuration
Configuration is done through the config.json file, located in the same directory as droppy.js.
{
"debug" : true,
"useSSL" : false,
"port" : 80,
"readInterval" : 50,
"filesMode" : "644",
"dirMode" : "755",
"linkLength" : 3,
"maxOpen" : 256,
"timestamps" : true,
"httpsKey" : "./keys/key.pem",
"httpsCert" : "./keys/cert.pem",
"db" : "./db.json",
"filesDir" : "./files/",
"incomingDir" : "./incoming/",
"resDir" : "./res/",
"srcDir" : "./src/"
}###General options
debugSkip resource minification and enable automatic CSS reloading.useHTTPSWhether the server should use HTTPS.portThe listening port. For HTTPS, you may want to set it to 443.readIntervalThe minimum time gap in milliseconds in which updates to a directory are sent.filesModeThe access mask with which files are created.dirModeThe access mask with which directories are created.linkLengthThe amount of characters in a shortlink to a file.maxOpenThe maximum number of concurrently opened files. 256 seems safe for Windows. On Unix, you can probably go higher.timestampsAdds timestamps to log output. Useful if your logging facility does not provide timestamps.httpsKeyPath to your openSSL private key. Used in conjunction withuseHTTPS.httpsCertPath to your openSSL cert(s). Used in conjunction withuseHTTPS.
###Path options
dbLocation of the user database file.filesDirThe directory which serves as the server's root.incomingDirThe directory which serves as the server's root.resDirThe directory which contains the compiled resources and images.srcDirThe directory which contains the html/js/css sources.
