0
Fork 0
mirror of https://github.com/willnorris/imageproxy.git synced 2024-12-16 21:56:43 -05:00

updating readme

This commit is contained in:
Rune Madsen 2015-09-08 10:53:33 -04:00 committed by Will Norris
parent 9a4791d60a
commit 5f5df0c860

View file

@ -153,6 +153,10 @@ full-size codercat image, and one for the resized 500px version.
[codercat URL]: http://localhost:8080/500/https://octodex.github.com/images/codercat.jpg
By default the disk cache will grow to 100MB. You can change this size by using the `-cacheSize` flag. The following example will allow the cache to take up 500MB of space.
imageproxy -cacheDir /tmp/imageproxy -cacheSize 500
### Referrer Whitelist ###
You can limit images to only be accessible for certain hosts in the HTTP referrer header. This may be useful to prevent others from hotlinking to images, and using your valuable bandwidth! It can be enabled be running: