Simple file server providing anyone with a password access to an S3 bucket's files. Displays files and provides download links for each file that expire.
-
Register a Google app and get the secret keys. The callback URL for this app should be
/login/google -
Get an S3 account set up
-
Create a
.envfile with the following contents:GOOGLE_ID=your_app_id GOOGLE_SECRET=your_google_secret S3_BUCKET=your_bucket S3_ID=your_app_id S3_KEY=your_key S3_LINK_TIMEOUT=5 S3_REGION=us-west-2 -
Run the app with
puma -
To restrict people, create the file
acl.txtand place the emails of the people you want to allow. Add one email per line. Then place the file in the S3 bucket you want to protect.
In production, set the environment variables on your server.