Include initial web router

This commit is contained in:
Kleissner
2022-09-24 16:56:20 +02:00
parent c862532b2d
commit f8f2d2cbfb
8 changed files with 143 additions and 17 deletions

View File

@@ -24,6 +24,10 @@ var config struct {
WebCertificateKey string `yaml:"WebCertificateKey"` // This is the private key.
WebTimeoutRead string `yaml:"WebTimeoutRead"` // The maximum duration for reading the entire request, including the body.
WebTimeoutWrite string `yaml:"WebTimeoutWrite"` // 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.
Redirect80 string `yaml:"Redirect80"` // Redirect 80 listen address. Empty if not used.
// WebFiles is the directory holding all HTML and other files to be served by the server
WebFiles string `yaml:"WebFiles"`
}
func main() {
@@ -49,7 +53,9 @@ func main() {
backend.Stdout.Subscribe(os.Stdout)
//startWebGateway(backend, )
go startWebGateway(backend)
backend.Connect()
select {}
}