Commit f5ef3f0
Resolve org subdomains under the community-foundations apex (#32)
Production fell back to Rails' default tld_length = 1, so it treated
rowhomelabs.com as the domain and mis-parsed every request: the apex
became request.subdomain "community-foundations" (404 instead of the
landing page) and "arlington.community-foundations.rowhomelabs.com"
became "arlington.community-foundations" (no matching org).
Set tld_length = 2 so the apex is the domain and org subdomains resolve
correctly, enable config.hosts for the apex plus org subdomains (with a
/up health-check exclusion), and list each org host in the kamal proxy
so it issues a per-host Let's Encrypt cert.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent ed9ddcb commit f5ef3f0
2 files changed
Lines changed: 21 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
60 | 66 | | |
61 | 67 | | |
62 | 68 | | |
| |||
79 | 85 | | |
80 | 86 | | |
81 | 87 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
90 | 98 | | |
0 commit comments