this repo has no description smallweb.run
smallweb
4
fork

Configure Feed

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

add back customDomains

pomdtr b9489d30 1bc51809

+19 -1
+7 -1
cmd/up.go
··· 83 83 return 84 84 } 85 85 86 - appname := strings.TrimSuffix(r.Host, "."+k.String("domain")) 86 + var appname string 87 + if name, ok := k.StringMap("customDomains")[r.Host]; ok { 88 + appname = name 89 + } else { 90 + appname = strings.TrimSuffix(r.Host, "."+k.String("domain")) 91 + } 92 + 87 93 a, err := app.LoadApp(filepath.Join(rootDir, appname), k.String("domain")) 88 94 if err != nil { 89 95 w.WriteHeader(http.StatusNotFound)
+12
docs/src/reference/global_config.md
··· 60 60 } 61 61 ``` 62 62 63 + ### `customDomains` 64 + 65 + The `customDomains` field is an object that maps custom domains to apps. 66 + 67 + ```json 68 + { 69 + "customDomains": { 70 + "example.com": "example", 71 + } 72 + } 73 + ``` 74 + 63 75 ## Default Config 64 76 65 77 By default the config file looks like this: