91demo / s3www

Serve static files from any S3 compatible object storage bucket

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

s3www

Serve static files from any S3 compatible object storage endpoints.

Install

If you do not have a working Golang environment, please follow How to install Golang.

go get github.com/harshavardhana/s3www

Run

Make sure you have index.html under website-bucket

s3www -endpoint "https://s3.amazonaws.com" -accessKey "accessKey" \
      -secretKey "secretKey" -bucket "website-bucket"

s3www: Started listening on http://0.0.0.0:8080

If you use Docker

ENDPOINT="https://s3.amazonaws.com"
ACCESS_KEY="accessKey"
SECRET_KEY="secretKey"
BUCKET="website-bucket"
ADDRESS="ADDRESS:PORT"
TLS_CERT=""
TLS_KEY=""

Test

Point your web browser to http://0.0.0.0:8080 ensure your s3www is serving your index.html successfully.

License

This project is distributed under the Apache License, Version 2.0, see LICENSE for more information.

About

Serve static files from any S3 compatible object storage bucket

License:Apache License 2.0


Languages

Language:Go 92.1%Language:Makefile 7.9%