up
This commit is contained in:
@@ -19,7 +19,7 @@ MAIL_FROM_ADDRESS=soporte@u-s.app
|
|||||||
MAIL_FROM_NAME=soporte@u-s.app
|
MAIL_FROM_NAME=soporte@u-s.app
|
||||||
MAIL_PORT=465
|
MAIL_PORT=465
|
||||||
|
|
||||||
APP_PREFORK=true
|
APP_PREFORK=false
|
||||||
|
|
||||||
SESSION_DATABASE=./session.db
|
SESSION_DATABASE=./session.db
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -40,6 +40,7 @@ type ServerConfig struct {
|
|||||||
ExecPath bool `mapstructure:"EXEC_PATH" yaml:"exec_path" env:"EXEC_PATH" env-default:"false"`
|
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"`
|
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"`
|
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() {
|
func (s *ServerConfig) LoadPath() {
|
||||||
@@ -69,7 +70,7 @@ func (s *ServerConfig) Setup() {
|
|||||||
ErrorHandler: CustomErrorHandler,
|
ErrorHandler: CustomErrorHandler,
|
||||||
DisableStartupMessage: true,
|
DisableStartupMessage: true,
|
||||||
ProxyHeader: s.ProxyHeader,
|
ProxyHeader: s.ProxyHeader,
|
||||||
Prefork: true,
|
Prefork: s.Prefork,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user