It's a simple web APP for shareing files with others. It is inspired by SimpleHTTPServer in Python.
- It's COOL!
- HTML5 Drag & Drop
- One Command Start
- Download the latest release or
https://github.com/sytmac/sharing-file-center.git
- Edit
config.py
, setroot
to the directory which you want to share. eg.root = /home/xxx/center
- Create this dir if it doesn't exist. eg.
mkdir /home/xxx/center
- Edit
config.py
, setadmin_name
andadmin_password
to make you delete the upload file var webpage - Start the daemon:
$ python index.py [port]
- Access it from your browser : http://hostname[:port]
- Enjoy it.
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...
- Copy
conf/upload.conf
to nginx.cnf(maybe /etc/nginx/nginx.conf),paste it in http{}. - Modify
nginx.conf
according to your own condition, then reload nginx. - Chdir to the root path of my project.
- 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) - or you can start uwsgi via upstart. More about start uwsgi app.
- debug big file can not upload under nginx.
- Multiple file upload.