New command line parameter to start the webapi. This overrides the config.yaml API settings, if used. Added proper documentation in the readme.

This commit is contained in:
Kleissner
2021-11-10 14:04:12 +01:00
parent 651fc4beec
commit 2a2d549d13
3 changed files with 68 additions and 4 deletions

View File

@@ -25,8 +25,8 @@ var config struct {
APIUseSSL bool `yaml:"APIUseSSL"` // Enables SSL.
APICertificateFile string `yaml:"APICertificateFile"` // This is the certificate received from the CA. This can also include the intermediate certificate from the CA.
APICertificateKey string `yaml:"APICertificateKey"` // This is the private key.
APITimeoutRead string `yaml:"HTTPTimeoutRead"` // The maximum duration for reading the entire request, including the body.
APITimeoutWrite string `yaml:"HTTPTimeoutWrite"` // The maximum duration before timing out writes of the response. This includes processing time and is therefore the max time any HTTP function may take.
APITimeoutRead string `yaml:"APITimeoutRead"` // The maximum duration for reading the entire request, including the body.
APITimeoutWrite string `yaml:"APITimeoutWrite"` // The maximum duration before timing out writes of the response. This includes processing time and is therefore the max time any HTTP function may take.
}
func init() {