diff --git a/README.md b/README.md index bfc2aab..f858e01 100644 --- a/README.md +++ b/README.md @@ -307,8 +307,7 @@ All configuration flags have equivalent environment variables of the form ## Deploying ## In most cases, you can follow the normal procedure for building a deploying any -go application. For example, I build it directly on my production debian server -using: +go application. For example: - `go build willnorris.com/go/imageproxy/cmd/imageproxy` - copy resulting binary to `/usr/local/bin` diff --git a/etc/imageproxy.conf b/etc/imageproxy.conf index ab3fb4a..d0008f9 100644 --- a/etc/imageproxy.conf +++ b/etc/imageproxy.conf @@ -5,10 +5,6 @@ start on (net-device-up) stop on runlevel [!2345] respawn -exec start-stop-daemon --start -c www-data --exec /usr/bin/imageproxy -- \ +exec start-stop-daemon --start -c www-data --exec /usr/local/bin/imageproxy -- \ -addr localhost:4593 \ - -log_dir /var/log/imageproxy \ - -cache /var/cache/imageproxy \ - -signatureKey @/etc/imageproxy.key \ - -baseURL https://willnorris.com/ \ - -allowHosts willnorris.com,notsoserendipitous.com,gabenorris.com + -cache memory -cache /var/cache/imageproxy \ diff --git a/etc/imageproxy.service b/etc/imageproxy.service index ff491d1..81baba1 100644 --- a/etc/imageproxy.service +++ b/etc/imageproxy.service @@ -5,10 +5,7 @@ Description=Image Proxy User=www-data ExecStart=/usr/local/bin/imageproxy \ -addr localhost:4593 \ - -cache /var/cache/imageproxy \ - -signatureKey @/etc/imageproxy.key \ - -baseURL https://willnorris.com/ \ - -allowHosts willnorris.com,notsoserendipitous.com,gabenorris.com + -cache memory -cache /var/cache/imageproxy \ Restart=on-abort [Install]