GithubHelp home page GithubHelp logo

filehub's Introduction

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

super user

FileHub now comes with a simple auth system, to indentify the uploader and protect users' files

by default a super user account will be generated with the project's initial setup

username: makto

password: toruk

super user could delete any file or folder despite its real owner

you can alter any user into super user with raw SQL in the command line

future features

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

built with & thanks to

filehub's People

Contributors

makto avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.