mirror of
https://github.com/willnorris/imageproxy.git
synced 2024-12-30 22:34:18 -05:00
small readme updates
- mention in-memory cache and how to use alternate cache implementations - add link to upstart config script
This commit is contained in:
parent
dd2508d21c
commit
8ada90ffd2
1 changed files with 10 additions and 6 deletions
16
README.md
16
README.md
|
@ -118,7 +118,8 @@ you should see a 500px square coder octocat.
|
||||||
|
|
||||||
### Disk cache ###
|
### Disk cache ###
|
||||||
|
|
||||||
To cache images on disk, include the `cacheDir` flag:
|
By default, the imageproxy command uses an in-memory cache that will grow
|
||||||
|
unbounded. To cache images on disk instead, include the `cacheDir` flag:
|
||||||
|
|
||||||
go run cmd/imageproxy/main.go -cacheDir /tmp/imageproxy
|
go run cmd/imageproxy/main.go -cacheDir /tmp/imageproxy
|
||||||
|
|
||||||
|
@ -143,7 +144,9 @@ comma separated list, or prefix a host value with `*.` to allow all sub-domains
|
||||||
as well.
|
as well.
|
||||||
|
|
||||||
Run `go run cmd/imageproxy/main.go -help` for a complete list of flags the
|
Run `go run cmd/imageproxy/main.go -help` for a complete list of flags the
|
||||||
command accepts.
|
command accepts. If you want to use a different caching implementation, it's
|
||||||
|
probably easiest to just make a copy of `cmd/imageproxy/main.go` and customize
|
||||||
|
it to fit your needs... it's a very simple command.
|
||||||
|
|
||||||
|
|
||||||
## Deploying ##
|
## Deploying ##
|
||||||
|
@ -167,10 +170,11 @@ I then run `goxc` which compiles the static binary and creates a deb package at
|
||||||
I copy this file to my server and install it using `sudo dpkg -i
|
I copy this file to my server and install it using `sudo dpkg -i
|
||||||
imageproxy_0.2.1_amd64.deb`, which is installed to `/usr/bin/imageproxy`.
|
imageproxy_0.2.1_amd64.deb`, which is installed to `/usr/bin/imageproxy`.
|
||||||
|
|
||||||
Ubuntu uses upstart to manage services, so I copy `etc/imageproxy.conf` to
|
Ubuntu uses upstart to manage services, so I copy
|
||||||
`/etc/init/imageproxy.conf` on my server and start it using `sudo service
|
[`etc/imageproxy.conf`](etc/imageproxy.conf) to `/etc/init/imageproxy.conf` on
|
||||||
imageproxy start`. You will certainly want to modify that upstart script to
|
my server and start it using `sudo service imageproxy start`. You will
|
||||||
suit your desired configuration.
|
certainly want to modify that upstart script to suit your desired
|
||||||
|
configuration.
|
||||||
|
|
||||||
|
|
||||||
## License ##
|
## License ##
|
||||||
|
|
Loading…
Reference in a new issue