Skip to content

sytmac/sharing-file-center

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Your Personal File Sharing Center

It's a simple web APP for shareing files with others. It is inspired by SimpleHTTPServer in Python.

Features

  • It's COOL!
  • HTML5 Drag & Drop
  • One Command Start

Usage

  1. Download the latest release or https://github.com/sytmac/sharing-file-center.git
  2. Edit config.py, set root to the directory which you want to share. eg. root = /home/xxx/center
  3. Create this dir if it doesn't exist. eg. mkdir /home/xxx/center
  4. Edit config.py, set admin_name and admin_password to make you delete the upload file var webpage
  5. Start the daemon: $ python index.py [port]
  6. Access it from your browser : http://hostname[:port]
  7. Enjoy it.

Advanced

If you want a better perfomence and higher concurrency, you can deploy it with nginx and uwsgi.

If you have no idea how to set nginx and uwsgi, the following may help...

  1. Copy conf/upload.conf to nginx.cnf(maybe /etc/nginx/nginx.conf),paste it in http{}.
  2. Modify nginx.conf according to your own condition, then reload nginx.
  3. Chdir to the root path of my project.
  4. Quick start uwsgi: uwsgi -w index -s :9999 in your project directory(choose whatever port you like, but must match the setting in nginx.conf)
  5. or you can start uwsgi via upstart. More about start uwsgi app.

Future Work

  • debug big file can not upload under nginx.
  • Multiple file upload.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published