feat: add h2c for http server (#8294)

* feat: add h2c for http server

* chore(config): add EnableH2c option
This commit is contained in:
j2rong4cn
2025-04-12 17:02:51 +08:00
committed by GitHub
parent a2f266277c
commit 4f5cabc725
4 changed files with 15 additions and 6 deletions

View File

@@ -35,6 +35,7 @@ type Scheme struct {
KeyFile string `json:"key_file" env:"KEY_FILE"`
UnixFile string `json:"unix_file" env:"UNIX_FILE"`
UnixFilePerm string `json:"unix_file_perm" env:"UNIX_FILE_PERM"`
EnableH2c bool `json:"enable_h2c" env:"ENABLE_H2C"`
}
type LogConfig struct {