mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-26 21:36:24 +02:00
add "valid until" option to limit lifetime of signed requests
Closes #222 Co-authored-by: Will Norris <will@willnorris.com>
This commit is contained in:
parent
b98b3455a1
commit
fe35d19c3e
5 changed files with 58 additions and 5 deletions
|
|
@ -312,6 +312,14 @@ If both a whiltelist and signatureKey are specified, requests can match either.
|
|||
In other words, requests that match one of the allowed hosts don't necessarily
|
||||
need to be signed, though they can be.
|
||||
|
||||
To limit how long a URL is valid (particularly useful for signed URLs),
|
||||
you can specify a "valid until" time using the `vu` option with a Unix timestamp.
|
||||
For example, the following signed URL would only be valid until 2020-01-01:
|
||||
|
||||
```
|
||||
http://localhost:8080/vu1577836800,sjNcVf6LxzKEvR6Owgg3zhEMN7xbWxlpf-eyYbRfFK4A=/https://example.com/image
|
||||
```
|
||||
|
||||
### Default Base URL
|
||||
|
||||
Typically, remote images to be proxied are specified as absolute URLs.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue