Skip to content
/ FileHub Public
forked from makto/FileHub

file sharing for a small circle of people

Notifications You must be signed in to change notification settings

ranfi/FileHub

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FileHub

what's this

file sharing web app

you can upload, download, delete, etc

how to use it

  1. sudo pip install tornado
  2. python filehub.py

then it's up and running on localhost:8888

customization

using nginx

by default FileHub handles file upload/download with tornado itself, for fast-setup consideration

but tornado is not so efficient in serving static files and especially uploading files (limited by RAM or so, people say)

so FileHub comes with nginx support

you can easily switch to nginx:

  1. install nginx with nginx upload module
  • notice: this module doesn't support newest version of nginx, I'm using nginx 1.2.9 and it works fine
  1. put nginx.conf to /etc/nginx/site-enabled/ (may differ for different OS)
  2. change the following fields in filehub.conf on your needs:
  • root in location ^~ /static/
  • alias in location /download/
  • upload_store in location /upload/ (make sure you create it)
  1. uncomment static_server = 'nginx' in config.py

that's it

files location

files will be uploaded to files/ folder right in FileHub root directory by default

you can change that by modifying files_path in config.py

this may be useful if you want to store files on another disk

future features

  • codes and comments cleaning
  • more elegant module structure
  • auth system
  • display corresponding icons for different type of file
  • display uploading progress for individual file
  • handle uploading errors

built with & thanks to

About

file sharing for a small circle of people

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published