Skip to content

igg/FileDrop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

filedrop

Anonymous file upload to S3 using Python/Flask

Based on

Quick-start guide for nginx/Ubuntu 16,18

  • create a user called filedrop in the www-data group (group used by nginx)
        sudo adduser  --disabled-password --gecos "" --ingroup www-data filedrop
  • login as filedrop, get and install the repo
    git clone https://github.com/igg/FileDrop.git
    cd FileDrop
    virtualenv venv --no-site-packages
    source venv/bin/activate
    pip install -e .
  • SSL configuration is beyond the scope of these docs. Try:
          /etc/ssl/private/server-cert.pem
          /etc/ssl/private/server-cert-key.pem
    
    • You will need to manually change the name of your server from filedrop.example.com in startup/nginx/filedrop
  • copy startup files to appropriate places
    • switch back to your regular user with sudo privileges
      • filedrop user should not have a password or sudo privileges.
    sudo cp ~filedrop/FileDrop/startup/nginx/filedrop /etc/nginx/sites-available/
    sudo ln -s /etc/nginx/sites-available/filedrop /etc/nginx/sites-enabled/filedrop
    sudo cp ~filedrop/FileDrop/startup/systemd/filedrop.service /etc/systemd/system/filedrop.service
    sudo systemctl daemon-reload
    sudo service filedrop start
    sudo service nginx reload

About

Anonymous file upload to S3 using Python/Flask

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages