Skip to content
Server to index & view files in a s3 or Google Cloud Storage bucket.
Go CSS Makefile HTML JavaScript Dockerfile
Branch: master
Clone or download
jessfraz update travis
Signed-off-by: Jess Frazelle <acidburn@jessfraz.com>
Latest commit 06ee828 May 25, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
static new cli pkg Jul 17, 2018
templates cleanup and better interval Jan 10, 2017
vendor
version update generated project files Jan 1, 2018
.gitignore
.goosarch update generated files Jul 17, 2018
.travis.yml
.traviskey update generated files Jul 17, 2018
Dockerfile
LICENSE
Makefile update makefile Sep 25, 2018
README.md
VERSION.txt Bump version to v0.2.5 Sep 25, 2018
basic.mk update toc Dec 29, 2018
gcs.go update vendor Jan 2, 2018
go.mod update vendor Sep 25, 2018
go.sum update vendor Sep 25, 2018
main.go update travis May 25, 2019
provider.go update travis May 25, 2019
s3.go
screenshot.png

README.md

s3server

Travis CI GoDoc

Static server for s3 or gcs files.

Table of Contents

Installation

Binaries

For installation instructions from binaries please visit the Releases Page.

Via Go

$ go get github.com/jessfraz/s3server

Usage

$ s3server -h
s3server -  Server to index & view files in a s3 or Google Cloud Storage bucket.

Usage: s3server <command>

Flags:

  --bucket    bucket path from which to serve files (default: <none>)
  --cert      path to ssl certificate (default: <none>)
  -d          enable debug logging (default: false)
  --interval  interval to generate new index.html's at (default: 5m0s)
  --key       path to ssl key (default: <none>)
  -p          port for server to run on (default: 8080)
  --provider  cloud provider (ex. s3, gcs) (default: s3)
  --s3key     s3 access key (default: <none>)
  --s3region  aws region for the bucket (default: us-west-2)
  --s3secret  s3 access secret (default: <none>)

Commands:

  version  Show the version information.

run with the docker image

# On AWS S3
$ docker run -d \
    --restart always \
    -e AWS_ACCESS_KEY_ID \
    -e AWS_SECRET_ACCESS_KEY \
    -p 8080:8080 \
    --name s3server \
    --tmpfs /tmp \
    r.j3ss.co/s3server -bucket s3://hugthief/gifs

# On Google Cloud Storage
$ docker run --restart always -d \
    --name gifs \
    -p 8080:8080 \
    -v ~/configs/path/config.json:/creds.json:ro \
    -e GOOGLE_APPLICATION_CREDENTIALS=/creds.json \
    --tmpfs /tmp \
    r.j3ss.co/s3server -provider gcs -bucket gcs://misc.j3ss.co/gifs

screenshot

You can’t perform that action at this time.