up
This commit is contained in:
+2
-1
@@ -40,6 +40,7 @@ type ServerConfig struct {
|
||||
ExecPath bool `mapstructure:"EXEC_PATH" yaml:"exec_path" env:"EXEC_PATH" env-default:"false"`
|
||||
Debug bool `mapstructure:"APP_DEBUG" yaml:"debug" env:"APP_DEBUG" env-default:"true"`
|
||||
UploadSize int `mapstructure:"UPLOAD_SIZE" yaml:"upload_size" env:"UPLOAD_SIZE" env-default:"400"`
|
||||
Prefork bool `mapstructure:"APP_PREFORK" yaml:"prefork" env:"APP_PREFORK" env-default:"false"`
|
||||
}
|
||||
|
||||
func (s *ServerConfig) LoadPath() {
|
||||
@@ -69,7 +70,7 @@ func (s *ServerConfig) Setup() {
|
||||
ErrorHandler: CustomErrorHandler,
|
||||
DisableStartupMessage: true,
|
||||
ProxyHeader: s.ProxyHeader,
|
||||
Prefork: true,
|
||||
Prefork: s.Prefork,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user