Giter Site home page Giter Site logo

claudyus / share Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 0.0 1.79 MB

A dockerize file sharing app similar to WeTransfer on-prem

Home Page: https://hub.docker.com/r/claudyus/share/

License: The Unlicense

CSS 0.85% JavaScript 76.54% Dockerfile 1.23% Handlebars 21.37%
file-upload buckets file-sharing file-manager collaboration corporate dropzone docker

share's Introduction

share

dependencies Status Build Status Coverage Status

An express.js web app for sharing files using dropzone.js. There are no limits on file size and by default no user authentication. Files are never cleaned up.

screenshot

Access Control List of bucket

Each ACL bucket is configurable using uploadind a files.

You can upload a file called '.deny_list' to a given bucket to avoid to expose uploaded files.

Another operation that can be disable is the bucket deletion, in this case you should upload a '.deny_delete' file.

The '.token_upload' file can be used to set a bearer authorization token following RFC6750 standard.

Configuration

The following enviroment variables can be used to change default behaviour of share:

  • PORT - define server listen port, default 5000
  • TMP_DIR - define the temp dir for upload, default tmp/
  • UPLOAD_DIR - define the final upload dir, default upload/ (when using Docker the default path is /app/upload)
  • BRAND - define a custom brand, default File
  • SENTRY_DSN - if set, the exception are collected and sent to your sentry project

Running

$ yarn
$ node .

Updating client dependencies

$ grunt

Dokku configuration

$ git push deploy
# dokku storage:mount share /var/lib/dokku/data/storage/share:/app/upload
# dokku ps:restart share

share's People

Contributors

briangreenery avatar claudyus avatar dependabot[bot] avatar gnawhleinad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

share's Issues

Cleanup API

Proposing a POST /cleanup/:random endpoint

That should accept an array of filenames to clean, for maintenance purpose.
It should be restricted to the :random it requests

List API - JSON

Proposing a /list/:random endpoint

This API should return an array of strings, a simple fs.readDir might suffice

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.