From 2eb6dfcd05a00a27a1a8bed2d7609b89b611e24b Mon Sep 17 00:00:00 2001 From: Will Norris Date: Mon, 24 Feb 2020 00:20:43 +0000 Subject: [PATCH] remove my personal config from example systemd file --- README.md | 3 +-- etc/imageproxy.conf | 8 ++------ etc/imageproxy.service | 5 +---- 3 files changed, 4 insertions(+), 12 deletions(-) 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]