Giter Club home page Giter Club logo

filecollectionweb's Introduction

FileCollectionWeb

upload file to qiniu form web. 免登陆在线web收集文件并上传至七牛

说明

这是一个轻量级文件收集程序,旨在提供免登陆文件收集服务

Demo:

部署

web由Flask、UWSGI、Nginx实现,请自行查阅,等俺病好了再更新细节。
1.将上传至服务器
2.配置七牛信息
3.配置uwsgi
4.配置Nginx
5.开screen,启动程序

##示例 uwsgiconfig.ini:

[uwsgi]

# uwsgi 启动时所使用的地址与端口
socket = 127.0.0.1:8010

# 指向网站目录
chdir = your web file directory

# python 启动程序文件
wsgi-file = manage.py 

# python 程序内用以启动的 application 变量名
callable = app 

# 处理器数
processes = 4

# 线程数
threads = 2

#状态检测地址
stats = 127.0.0.1:9200

yourdomina.conf:

server
    {
        listen 80;
        #listen [::]:80;
        server_name file.nanguoyu.us;
        index index.html index.htm  default.html default.htm ;
        root  /home/www/yourdomina;

        include other.conf;
        #error_page   404   /404.html;
        include enable-php.conf;

		location / {

			include        uwsgi_params;     

			uwsgi_pass     127.0.0.1:8010;
							
			uwsgi_param UWSGI_PYHOME /usr/bin/python;
			
			uwsgi_param UWSGI_CHDIR  /home/www/yourdomina;

			uwsgi_param UWSGI_SCRIPT manage:app;     

		}

        access_log  /home/www/yourdomina/file.yourdomina.log;
    }

七牛配置

        self._access_key = '七牛 Access Key'
        self._secret_key = '七牛 Secret Key'
        self._bucket_name = '七牛空间名称'
        domain = '七牛空间对应域名'

启动

Screen -S FileCollectionWeb

uwsgi uwsgiconfig.ini

##TODO

  • 文件上传
  • 邮件通知
  • 取件码

许可

The MIT License (MIT). 详情见 License文件

filecollectionweb's People

Stargazers

 avatar

Watchers

 avatar  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.