1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-01-08 10:45:04 +02:00

Add default value to IMGPROXY_MAX_REDIRECTS documentation and clarify usage of value 0 (#969)

* Add default value to IMGPROXY_MAX_REDIRECTS

Taken from ff3d3cedc4/config/config.go (L206)

* Clarify usage of 0 as value of IMGPROXY_MAX_REDIRECTS

* Use suggested phrasing

Co-authored-by: Sergey Alexandrovich <DarthSim@users.noreply.github.com>

Co-authored-by: Sergey Alexandrovich <DarthSim@users.noreply.github.com>
This commit is contained in:
Tuomas Valtonen 2022-09-09 10:21:58 +01:00 committed by GitHub
parent 61464a7686
commit c3d3aac559
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ To check if the source image is SVG, imgproxy reads some amount of bytes; by def
Requests to some image sources may go through too many redirects or enter an infinite loop. You can limit the number of allowed redirects:
* `IMGPROXY_MAX_REDIRECTS`: the max number of redirects imgproxy can follow while requesting the source image
* `IMGPROXY_MAX_REDIRECTS`: the max number of redirects imgproxy can follow while requesting the source image. When set to `0`, no redirects are allowed. Default: `10`
You can also specify a secret key to enable authorization with the HTTP `Authorization` header for use in production environments: