mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-06-09 11:25:14 +02:00
rename 'Whitelist' to 'RemoteHosts"
This better describes what exactly is being allowed.
This commit is contained in:
parent
0370572130
commit
70276f36bc
7 changed files with 61 additions and 49 deletions
|
|
@ -29,7 +29,7 @@ case "$1" in
|
|||
test -n "$ADDR" && DAEMON_OPTS+=" -addr=$ADDR"
|
||||
test -n "$CACHE" && DAEMON_OPTS+=" -cache=$CACHE"
|
||||
test -n "$LOG_DIR" && DAEMON_OPTS+=" -log_dir=$LOG_DIR"
|
||||
test -n "$ALLOWED_REMOTE_HOSTS" && DAEMON_OPTS+=" -whitelist=$ALLOWED_REMOTE_HOSTS"
|
||||
test -n "$ALLOWED_REMOTE_HOSTS" && DAEMON_OPTS+=" -remoteHosts=$ALLOWED_REMOTE_HOSTS"
|
||||
|
||||
echo -n "Starting $NAME: "
|
||||
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
|
||||
|
|
|
|||
|
|
@ -11,4 +11,4 @@ exec start-stop-daemon --start -c www-data --exec /usr/bin/imageproxy -- \
|
|||
-cache /var/cache/imageproxy \
|
||||
-signatureKey @/etc/imageproxy.key \
|
||||
-baseURL https://willnorris.com/ \
|
||||
-whitelist willnorris.com,notsoserendipitous.com,gabenorris.com
|
||||
-remoteHosts willnorris.com,notsoserendipitous.com,gabenorris.com
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ ExecStart=/usr/local/bin/imageproxy \
|
|||
-cache /var/cache/imageproxy \
|
||||
-signatureKey @/etc/imageproxy.key \
|
||||
-baseURL https://willnorris.com/ \
|
||||
-whitelist willnorris.com,notsoserendipitous.com,gabenorris.com
|
||||
-remoteHosts willnorris.com,notsoserendipitous.com,gabenorris.com
|
||||
Restart=on-abort
|
||||
|
||||
[Install]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue