浏览代码

Increase IMGPROXY_MAX_SRC_RESOLUTION default value to 50

DarthSim 1 年之前
父节点
当前提交
8f95063e16
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      CHANGELOG.md
  2. 1 1
      config/config.go

+ 1 - 0
CHANGELOG.md

@@ -3,6 +3,7 @@
 ## [Unreleased]
 ### Change
 - Support configuring OpenTelemetry with standard [general](https://opentelemetry.io/docs/languages/sdk-configuration/general/) and [OTLP Exporter](https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/) environment variables.
+- `IMGPROXY_MAX_SRC_RESOLUTION` default value is increased to 50.
 
 ### Fix
 - Fix loading environment variables from the AWS System Manager Parameter Store when there are more than 10 parameters.

+ 1 - 1
config/config.go

@@ -228,7 +228,7 @@ func Reset() {
 
 	PathPrefix = ""
 
-	MaxSrcResolution = 16800000
+	MaxSrcResolution = 50000000
 	MaxSrcFileSize = 0
 	MaxAnimationFrames = 1
 	MaxAnimationFrameResolution = 0