From 4aa8e01f60bfc29cbfae0eeb2898d070b8042524 Mon Sep 17 00:00:00 2001 From: Will Norris Date: Sat, 9 Sep 2017 08:11:47 +0000 Subject: [PATCH] add my personal systemd config --- etc/imageproxy.conf | 1 - etc/imageproxy.service | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 etc/imageproxy.service diff --git a/etc/imageproxy.conf b/etc/imageproxy.conf index 3c33a46..9098acd 100644 --- a/etc/imageproxy.conf +++ b/etc/imageproxy.conf @@ -1,4 +1,3 @@ -# This is the upstart config I use for https://willnorris.com/api/imageproxy/ description "Image Proxy server" author "Will Norris " diff --git a/etc/imageproxy.service b/etc/imageproxy.service new file mode 100644 index 0000000..ea02849 --- /dev/null +++ b/etc/imageproxy.service @@ -0,0 +1,16 @@ +# This is the systemd config I use for https://willnorris.com/api/imageproxy/ +[Unit] +Description=Image Proxy + +[Service] +User=www-data +ExecStart=/usr/local/bin/imageproxy \ + -addr localhost:4593 \ + -cache /var/cache/imageproxy \ + -signatureKey @/etc/imageproxy.key \ + -baseURL https://willnorris.com/ \ + -whitelist willnorris.com,notsoserendipitous.com,gabenorris.com +Restart=on-abort + +[Install] +WantedBy=multi-user.target