Sign inSign up

fukata/imgproxy

By fukata

•Updated over 7 years ago

This is ngx_small_light based image proxy.

Image
1

1.1K

fukata/imgproxy repository overview

⁠docker-image-imgproxy

⁠What's this?

This is docker image of ngx_small_light .

⁠How to use

$ docker pull fukata/imgproxy
$ docker run --env 'S3_BUCKET=img.example.com.s3-ap-northeast-1.amazonaws.com' -p 8888:80 fukata/imgproxy
$ open http://127.0.0.1:8888/thumb/dw=300,dh=300,q=80/path/to/image.jpg

⁠Environment Variables

namedescription
S3_BUCKETS3 bucket name. ex) img.example.com.s3-ap-northeast-1.amazonaws.com
S3_DIR_PREFIXS3 dir prefix of image dir. default: images/
URL_PREFIXURL prefix. default: thumb/
PROXY_CACHE_DIRcache path part nginx proxy_cache_path. default: /var/cache/imgproxy_cache
PROXY_CACHE_LEVELSlevels part of nginx proxy_cache_path. default: 1:2
PROXY_CACHE_MAX_SIZEmax_size part of nginx proxy_cache_path. default: 1G
PROXY_CACHE_INACTIVEinactive part of nginx proxy_cache_path. default: 1h
PROXY_CACHE_ZONE_SIZEkeys_zone size part of nginx proxy_cache_path. default: 5m
PROXY_CACHE_VALID_200value of proxy_cache_valid. default: 1h

Tag summary

Content type

Image

Digest

Size

298.9 MB

Last updated

over 7 years ago

docker pull fukata/imgproxy