feat: Add HTTP2 for unencrypted HTTP

Signed-off-by: erezrokah <erezrokah@users.noreply.github.com>
This commit is contained in:
erezrokah
2024-01-17 20:59:02 +00:00
parent 01b4555d59
commit 11f50c034e
22 changed files with 397 additions and 124 deletions

View File

@@ -97,6 +97,9 @@ var configStruct = Configuration{
HTTP2 struct {
Disabled bool `yaml:"disabled,omitempty"`
} `yaml:"http2,omitempty"`
H2C struct {
Enabled bool `yaml:"enabled,omitempty"`
} `yaml:"h2c,omitempty"`
}{
TLS: struct {
Certificate string `yaml:"certificate,omitempty"`
@@ -121,6 +124,11 @@ var configStruct = Configuration{
}{
Disabled: false,
},
H2C: struct {
Enabled bool `yaml:"enabled,omitempty"`
}{
Enabled: true,
},
},
Redis: Redis{
Addr: "localhost:6379",