Skip to content

supernova106/s3-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Proxy server to retrieve and serve object from S3 bucket. Currently supports html and jpeg/jpg types, though this can be further customized.

Setup

  • Grab the latest binary from the releases page.

  • On macOS you can install or upgrade to the latest released version with Homebrew:

brew install dep
brew upgrade dep
  • Please refer to: Go Dep
  • dep ensure to install dependencies
  • cp .env.sample .env and update the necessary parameters.
  • the app supports default AWS authentication methods, using AWS credential, environment variables as well as AWS profile and IAM role.
  • for Production deployment, set GIN_MODE=release

Release

  • get go releaser for MacOS
brew install goreleaser/tap/goreleaser
  • Next, you need to export a GITHUB_TOKEN environment variable, which should contain a GitHub token with the repo scope selected. It will be used to deploy releases to your GitHub repository. Create a token here.

  • export GITHUB_TOKEN=YOUR_TOKEN

  • GoReleaser uses the latest Git tag of your repository. Create a tag and push it to GitHub:

git tag -a v0.1.0 -m "First release"
git push origin v0.1.0
  • Please refer to semantic versioning when making a tag
  • If you don't want to create a tag yet, you can also create a release based on the latest commit by using the --snapshot flag.
  • Now you can run GoReleaser at the root of your repository:
goreleaser

About

s3 proxy

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages