Hi Tyk,
Our Tyk dashboard and portal are running on the same host and port. Both runs on port 3000. I have to set the cname of the organization to the ipadres of the hostname, in able to run the portal and dashboard on the same host. If I set the DNS name of the host, i’'m not able to start the Tyk dashboard. The following error is thrown:
time=“Jun 26 10:28:59” level=info msg=“Generating portal for: HOSTNAME”
panic: http: multiple registrations for HOSTNAME
goroutine 1 [running]:
panic(0xa85e60, 0xc4204365a0)
/usr/local/go/src/runtime/panic.go:500 +0x1a1
net/http.(*ServeMux).Handle(0xc420325170, 0xc420438cc0, 0x1d, 0xf2cec0, 0xc420436590)
/usr/local/go/src/net/http/server.go:2038 +0x5d5
main.GenerateRoutes()
/src/github.com/TykTechnologies/tyk-analytics/Main.go:905 +0x2ff6
main.main()
/src/github.com/TykTechnologies/tyk-analytics/Main.go:922 +0x77
Is this a bug or do I need to change my configuration?