This commit is contained in:
Lizandro Guarnizo
2026-03-11 16:41:14 -05:00
parent 3174b3a434
commit 3bdf44d811
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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
+2 -1
View File
@@ -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,
})
}