emery

command module
v0.0.0-...-b96c0aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 35 Imported by: 0

README

Emery

A WORK IN PROGRESS imageserver that is backed by S3, fronted by groupcache, and supports HMAC signing and verification of URLs

example

$ ./emery --listen=:8081 --groupcache-peers=:8082,:8083 --s3bucket myimage-test --key MYK3Yc00l --expiration 30m &
$ ./emery --listen=:8082 --groupcache-peers=:8081,:8083 --s3bucket myimage-test --key MYK3Yc00l --expiration 30m &
$ ./emery --listen=:8083 --groupcache-peers=:8081,:8082 --s3bucket myimage-test --key MYK3Yc00l --expiration 30m &

Open http://localhost:8081/_sign/path/to/image.jpg?width=100 it will redirect to http://localhost:8081/longHMAChashHERE/path/to/image.jpg?expiration=UNIXmilliSTAMP&width=100

Stats are available on http://localhost:8081/stats

Documentation

Overview

Package advanced provides a groupcache example.

Run:

./emery --listen=:8081 --groupcache-peers=:8082,:8083 --s3bucket myimage-test --key MYK3Yc00l --expiration 30m & ./emery --listen=:8082 --groupcache-peers=:8081,:8083 --s3bucket myimage-test --key MYK3Yc00l --expiration 30m & ./emery --listen=:8083 --groupcache-peers=:8081,:8082 --s3bucket myimage-test --key MYK3Yc00l --expiration 30m &

Open http://localhost:8081/_sign/path/to/image.jpg?width=100 it will redirect to http://localhost:8081/longHMAChashHERE/path/to/image.jpg?expiration=UNIXmilliSTAMP&width=100

Stats are available on http://localhost:8081/stats

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL