feat: add multiple hosts rounting capabilities

This commit is contained in:
Jonas Kaninda
2024-11-10 07:56:46 +01:00
parent 7bb64497c2
commit bc057dd435
4 changed files with 14 additions and 8 deletions

View File

@@ -118,7 +118,7 @@ func initConfig(configFile string) {
configFile = GetConfigPaths()
}
conf := &GatewayConfig{
Version: util.Version,
Version: util.ConfigVersion,
GatewayConfig: Gateway{
WriteTimeout: 15,
ReadTimeout: 15,
@@ -165,7 +165,7 @@ func initConfig(configFile string) {
},
{
Name: "Hostname example",
Host: "http://example.localhost",
Hosts: []string{"example.com", "example.localhost"},
Path: "/",
Destination: "https://example.com",
Rewrite: "/",