extras/gaia/server.go
Method Server.SetupRoute
has 6 return statements (exceeds 4 allowed). Open
Open
func (s *Server) SetupRoute() {
secureMiddleware := secure.New(secure.Options{
AllowedHosts: []string{"noty.ax", "gaia.noty.im", "laputa.noty.im", ".*.noty.im"},
AllowedHostsAreRegex: true,
HostsProxyHeaders: []string{"X-Forwarded-Host"},