2022-07-22 16:17:48 +00:00
|
|
|
package config
|
2020-03-25 15:30:21 +00:00
|
|
|
|
2020-12-01 08:40:58 +00:00
|
|
|
import (
|
|
|
|
"github.com/nspcc-dev/neo-go/pkg/encoding/fixedn"
|
|
|
|
)
|
2020-03-25 15:30:21 +00:00
|
|
|
|
|
|
|
type (
|
2022-07-22 16:17:48 +00:00
|
|
|
// RPC is an RPC service configuration information.
|
|
|
|
RPC struct {
|
2022-11-24 13:03:08 +00:00
|
|
|
BasicService `yaml:",inline"`
|
|
|
|
EnableCORSWorkaround bool `yaml:"EnableCORSWorkaround"`
|
2022-04-20 18:30:09 +00:00
|
|
|
// MaxGasInvoke is the maximum amount of GAS which
|
|
|
|
// can be spent during an RPC call.
|
2023-08-22 16:00:43 +00:00
|
|
|
MaxGasInvoke fixedn.Fixed8 `yaml:"MaxGasInvoke"`
|
|
|
|
MaxIteratorResultItems int `yaml:"MaxIteratorResultItems"`
|
|
|
|
MaxFindResultItems int `yaml:"MaxFindResultItems"`
|
|
|
|
MaxFindStorageResultItems int `yaml:"MaxFindStoragePageSize"`
|
|
|
|
MaxNEP11Tokens int `yaml:"MaxNEP11Tokens"`
|
2023-11-23 10:23:22 +00:00
|
|
|
MaxRequestBodyBytes int `yaml:"MaxRequestBodyBytes"`
|
2023-11-23 10:39:24 +00:00
|
|
|
MaxRequestHeaderBytes int `yaml:"MaxRequestHeaderBytes"`
|
2023-08-22 16:00:43 +00:00
|
|
|
MaxWebSocketClients int `yaml:"MaxWebSocketClients"`
|
|
|
|
SessionEnabled bool `yaml:"SessionEnabled"`
|
|
|
|
SessionExpirationTime int `yaml:"SessionExpirationTime"`
|
|
|
|
SessionBackedByMPT bool `yaml:"SessionBackedByMPT"`
|
|
|
|
SessionPoolSize int `yaml:"SessionPoolSize"`
|
|
|
|
StartWhenSynchronized bool `yaml:"StartWhenSynchronized"`
|
|
|
|
TLSConfig TLS `yaml:"TLSConfig"`
|
2020-03-25 15:30:21 +00:00
|
|
|
}
|
|
|
|
|
2022-07-22 16:17:48 +00:00
|
|
|
// TLS describes SSL/TLS configuration.
|
|
|
|
TLS struct {
|
2024-06-05 11:30:48 +00:00
|
|
|
BasicService `yaml:",inline"`
|
|
|
|
RootCA []string `yaml:"RootCAs"`
|
|
|
|
InsecureSkipVerify bool `yaml:"InsecureSkipVerify"`
|
|
|
|
CertFile string `yaml:"CertFile"`
|
|
|
|
KeyFile string `yaml:"KeyFile"`
|
2020-03-25 15:30:21 +00:00
|
|
|
}
|
|
|
|
)
|