2014-11-11 08:41:29 -08:00
|
|
|
# This is the upstart config I use for https://willnorris.com/api/imageproxy/
|
2013-12-26 11:42:46 -08:00
|
|
|
description "Image Proxy server"
|
|
|
|
author "Will Norris <will@willnorris.com>"
|
|
|
|
|
|
|
|
start on (net-device-up)
|
|
|
|
stop on runlevel [!2345]
|
|
|
|
|
|
|
|
respawn
|
2014-11-11 08:41:29 -08:00
|
|
|
exec start-stop-daemon --start -c www-data --exec /usr/bin/imageproxy -- \
|
2015-05-10 22:55:33 -07:00
|
|
|
-addr localhost:4593 \
|
2013-12-26 11:42:46 -08:00
|
|
|
-log_dir /var/log/imageproxy \
|
2015-12-07 20:56:56 -08:00
|
|
|
-cache /var/cache/imageproxy \
|
2015-05-14 16:38:49 -07:00
|
|
|
-signatureKey @/etc/imageproxy.key \
|
2015-05-20 17:08:57 -07:00
|
|
|
-baseURL https://willnorris.com/ \
|
|
|
|
-whitelist willnorris.com,notsoserendipitous.com,gabenorris.com
|