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