Add development errors mode

This commit is contained in:
DarthSim
2019-05-08 20:51:39 +06:00
parent 023dcadc34
commit bd95447ca5
3 changed files with 12 additions and 1 deletions

View File

@@ -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")