mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-09-28 20:43:54 +02:00
SO_REUSEPORT support
This commit is contained in:
@@ -136,6 +136,7 @@ type config struct {
|
||||
Concurrency int
|
||||
MaxClients int
|
||||
TTL int
|
||||
SoReuseport bool
|
||||
|
||||
MaxSrcDimension int
|
||||
MaxSrcResolution int
|
||||
@@ -258,6 +259,8 @@ func configure() {
|
||||
|
||||
intEnvConfig(&conf.TTL, "IMGPROXY_TTL")
|
||||
|
||||
boolEnvConfig(&conf.SoReuseport, "IMGPROXY_SO_REUSEPORT")
|
||||
|
||||
intEnvConfig(&conf.MaxSrcDimension, "IMGPROXY_MAX_SRC_DIMENSION")
|
||||
megaIntEnvConfig(&conf.MaxSrcResolution, "IMGPROXY_MAX_SRC_RESOLUTION")
|
||||
intEnvConfig(&conf.MaxSrcFileSize, "IMGPROXY_MAX_SRC_FILE_SIZE")
|
||||
|
Reference in New Issue
Block a user