Skip to content

claudyus/share

Repository files navigation

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