Browse Source

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

* Add default value to IMGPROXY_MAX_REDIRECTS

Taken from https://github.com/imgproxy/imgproxy/blob/ff3d3cedc4abbbc815472fa5a9171f61650ff881/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>
Tuomas Valtonen 2 years ago
parent
commit
c3d3aac559
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/configuration.md

+ 1 - 1
docs/configuration.md

@@ -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:
 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:
 You can also specify a secret key to enable authorization with the HTTP `Authorization` header for use in production environments: