diff --git a/.env b/.env index 2ec7da9..36cafb5 100755 --- a/.env +++ b/.env @@ -19,7 +19,7 @@ MAIL_FROM_ADDRESS=soporte@u-s.app MAIL_FROM_NAME=soporte@u-s.app MAIL_PORT=465 -APP_PREFORK=true +APP_PREFORK=false SESSION_DATABASE=./session.db diff --git a/config/server.go b/config/server.go index b5b7e9f..988188b 100755 --- a/config/server.go +++ b/config/server.go @@ -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, }) }