MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / NewDefaultConfig

Function NewDefaultConfig

security/config.go:42–52  ·  view source on GitHub ↗

NewDefaultConfig returns a new Config instance with default values.

()

Source from the content-addressed store, hash-verified

40
41// NewDefaultConfig returns a new Config instance with default values.
42func NewDefaultConfig() Config {
43 return Config{
44 SignatureSize: 32,
45
46 MaxSrcResolution: 50_000_000,
47 MaxSrcFileSize: 0,
48 MaxAnimationFrames: 1,
49 MaxAnimationFrameResolution: 0,
50 MaxResultDimension: 0,
51 }
52}
53
54// LoadConfigFromEnv overrides configuration variables from environment
55func LoadConfigFromEnv(c *Config) (*Config, error) {

Callers 2

NewDefaultConfigFunction · 0.92
SetupSuiteMethod · 0.92

Calls

no outgoing calls

Tested by 1

SetupSuiteMethod · 0.74