From 3bdf44d8112d595c784b45142c76045f885dd03b Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Wed, 11 Mar 2026 16:41:14 -0500 Subject: [PATCH] up --- .env | 2 +- config/server.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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, }) }