config.go 288 B

1234567891011121314
  1. package imagefetcher
  2. import "github.com/imgproxy/imgproxy/v3/config"
  3. type Config struct {
  4. // MaxRedirects is the maximum number of redirects allowed when fetching images.
  5. MaxRedirects int
  6. }
  7. func NewConfigFromEnv() *Config {
  8. return &Config{
  9. MaxRedirects: config.MaxRedirects,
  10. }
  11. }