mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-09-27 12:07:59 +02:00
Add development errors mode
This commit is contained in:
@@ -169,6 +169,7 @@ type config struct {
|
||||
UserAgent string
|
||||
|
||||
IgnoreSslVerification bool
|
||||
DevelopmentErrorsMode bool
|
||||
|
||||
LocalFileSystemRoot string
|
||||
S3Enabled bool
|
||||
@@ -293,6 +294,7 @@ func init() {
|
||||
strEnvConfig(&conf.UserAgent, "IMGPROXY_USER_AGENT")
|
||||
|
||||
boolEnvConfig(&conf.IgnoreSslVerification, "IMGPROXY_IGNORE_SSL_VERIFICATION")
|
||||
boolEnvConfig(&conf.DevelopmentErrorsMode, "IMGPROXY_DEVELOPMENT_ERRORS_MODE")
|
||||
|
||||
strEnvConfig(&conf.LocalFileSystemRoot, "IMGPROXY_LOCAL_FILESYSTEM_ROOT")
|
||||
|
||||
|
Reference in New Issue
Block a user