mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-09-27 20:17:20 +02:00
Add IMGPROXY_DISABLE_SHRINK_ON_LOAD config
This commit is contained in:
@@ -152,6 +152,8 @@ type config struct {
|
||||
EnforceWebp bool
|
||||
EnableClientHints bool
|
||||
|
||||
DisableShrinkOnLoad bool
|
||||
|
||||
Keys []securityKey
|
||||
Salts []securityKey
|
||||
AllowInsecure bool
|
||||
@@ -267,6 +269,8 @@ func init() {
|
||||
boolEnvConfig(&conf.EnforceWebp, "IMGPROXY_ENFORCE_WEBP")
|
||||
boolEnvConfig(&conf.EnableClientHints, "IMGPROXY_ENABLE_CLIENT_HINTS")
|
||||
|
||||
boolEnvConfig(&conf.DisableShrinkOnLoad, "IMGPROXY_DISABLE_SHRINK_ON_LOAD")
|
||||
|
||||
hexEnvConfig(&conf.Keys, "IMGPROXY_KEY")
|
||||
hexEnvConfig(&conf.Salts, "IMGPROXY_SALT")
|
||||
intEnvConfig(&conf.SignatureSize, "IMGPROXY_SIGNATURE_SIZE")
|
||||
|
Reference in New Issue
Block a user