this repo has no description smallweb.run
smallweb
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

allow to set an apex domain

pomdtr 2f4a2f49 e96b1b2d

+4 -4
+4 -4
cmd/up.go
··· 857 857 } 858 858 859 859 func lookupApp(domain string) (app string, redirect bool, found bool) { 860 - if domain == k.String("domain") { 861 - return "www", true, true 862 - } 863 - 864 860 for _, app := range k.MapKeys("apps") { 865 861 if slices.Contains(k.Strings(fmt.Sprintf("apps.%s.additionalDomains", app)), domain) { 866 862 return app, false, true 867 863 } 864 + } 865 + 866 + if domain == k.String("domain") { 867 + return "www", true, true 868 868 } 869 869 870 870 if strings.HasSuffix(domain, fmt.Sprintf(".%s", k.String("domain"))) {