Disable custom domains for now

This commit is contained in:
Jonathon Leight
2026-06-22 00:13:01 -04:00
parent 7755ef63f6
commit 3e7bd43aa5
3 changed files with 11 additions and 12 deletions
+2 -9
View File
@@ -129,15 +129,8 @@ func (s *Handlers) pageOrg(w http.ResponseWriter, r *http.Request) {
"Self": uid,
"Error": r.URL.Query().Get("error"),
}
if isAdmin {
domains, err := s.Store.ListOrgDomains(r.Context(), id)
if err != nil {
http.Error(w, "could not load domains", http.StatusInternalServerError)
return
}
data["Domains"] = domains
data["TXTName"] = txtRecordPrefix // org appends its hostname for the full record name
}
// Custom domains are hidden for now (infrastructure not in place); the
// org.html card and the /domains routes are disabled, so don't load them.
s.Render(w, r, "org.html", data)
}
+4
View File
@@ -190,6 +190,9 @@
</div>
</div>
{{/* Custom domains — hidden for now; the hosting/TLS infrastructure isn't in
place yet. Re-enable this card (plus the domains data in pageOrg and the
/domains routes in web.go) once it is.
<div class="card mt-3">
<div class="card-header"><h3 class="card-title">Custom domains</h3></div>
<div class="card-body">
@@ -238,6 +241,7 @@
</form>
</div>
</div>
*/}}
{{end}}
</div>
</div>
+5 -3
View File
@@ -154,9 +154,11 @@ func (s *Handlers) appRouter() chi.Router {
r.Post("/orgs/{id}/members/{userID}", s.handleSetOrgMember)
r.Get("/orgs/{id}/permissions", s.pageOrgPermissions)
r.Post("/orgs/{id}/permissions", s.handleSaveOrgPermissions)
r.Post("/orgs/{id}/domains", s.handleAddOrgDomain)
r.Post("/orgs/{id}/domains/verify", s.handleVerifyOrgDomain)
r.Post("/orgs/{id}/domains/delete", s.handleDeleteOrgDomain)
// Custom org domains are hidden for now — the hosting/TLS infrastructure
// isn't in place yet. Leave the handlers in tree but don't expose them.
// r.Post("/orgs/{id}/domains", s.handleAddOrgDomain)
// r.Post("/orgs/{id}/domains/verify", s.handleVerifyOrgDomain)
// r.Post("/orgs/{id}/domains/delete", s.handleDeleteOrgDomain)
r.Route("/admin", func(r chi.Router) {
r.With(s.requireCap(capAny)).Get("/", s.pageAdmin)