GitXplorerGitXplorer
o

simplefiledrop

public
2 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
5ecdb0aced88f52bb00da5e3200f745bdc25bbd7

Update email

ooleg-codaio committed 9 years ago
Unverified
34916793b432b35d332f3b07309ff714b64c7257

Set default extension to have plain text MIME type

ooleg-codaio committed 9 years ago
Unverified
33634d2100aadd3c36c0e7a3d4a4aa907e706471

Update README.md

ooleg-codaio committed 10 years ago
Unverified
92174c598c5f2cbd1532e5b59707aebb5793fd7e

Fix var reference

ooleg-codaio committed 10 years ago
Unverified
8c5aa1e515ff5537e913c21591acc72eb03bef07

Fix formatting

ooleg-codaio committed 10 years ago
Unverified
a27a008e1afb1680e3ef677788fb9e25ed857b72

Merge branch 'master' of github.com:ovaskevich/simplefiledrop

ooleg-codaio committed 10 years ago

README

The README file for this repository.

SimpleFileDrop

SimpleFileDrop is a lightweight Docker container that lets you easily host some files on your server.

For example, you can store your .bashrc, .vimrc, and .emacs files on your server, so that you always have instant access to them. Plus, no need to deal with FTP or SCP: simply configure SimpleFileDrop with Dropbox or Google Drive and sync when you need to.

Setup

First, create a ZIP file containing the files you want hosted, then:

  • If you're using Dropbox, place it in your Public directory and get the direct link to it, or
  • If you're using Google Drive, place it wherever, change the sharing settings to allow viewing by anyone with the URL, and get the link that's used when you "download" the file.

Now, you can run it. The image is stored in the public registry and should get automatically pulled.

docker run -d -e "APP_ARCHIVE_URL=https://dropb..." olegv/simplefiledrop

If you want, you can also set a few other environment variables: APP_PORT, APP_STORE_PATH (where your files are stored; /var/www by default), and APP_RELOAD_PATH (the special URL that causes SimpleFileDrop to update based on your archive; /reload_now by default).

If you want to host your files on a subdomain, see this StackOverflow answer.

Usage

When the server first starts, there's nothing in the /var/www directory. You need to trigger an update, so simply visit the /reload_now page to update the file drop.

Whenever you need to update your server, simply update the archive on your Dropbox or Google Drive folder, and revisit the reload URL!

You can access the logs this way (replace <container> based on the ID from docker ps):

docker exec <container> less +F /tmp/http.log