Skip to content

retro486/go-asset-repo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go OTP Asset Repository

I needed a simple asset repo to upload static assets for use on my blog and I wanted to refresh my Google Go since I hadn't touched it since the beta days (as seen by my now complete non-working go-dungeon project).

Two birds, one stone.

Install: go get github.com/retro486/go-asset-repo/...

Environment variables required:

  • GOPATH - the top level project folder (where this README is located)
  • ASSET_REPO_TEMPLATES - The path where HTML templates are located
  • ASSET_REPO_UPLOAD_DIR - The path to upload files to
  • ASSET_REPO_BASE_URL - The URL where upload dir is accessible
  • ASSET_REPO_OTP - Your OTP secret
  • ASSET_REPO_HMAC - Your cookie secret

Notes:

  • Tested on go 1.3. Not sure if it works on older versions. Doesn't work on version 1.0.
  • Some issue with uploading files and the default temp dir on linux. Need to look into it.

About

Simple Asset Repository written in Google Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages