Support www redirects in Docker install

This commit is contained in:
cyph3rasi
2026-03-07 20:11:40 -08:00
parent 17baf8e4f0
commit 588307d21e
4 changed files with 15 additions and 32 deletions
+3
View File
@@ -41,6 +41,9 @@ Edit `.env` and set these required values (domain should be host only, no scheme
| `AUTH_SECRET` | Run: `openssl rand -hex 32` |
| `ADMIN_EMAILS` | Your email address |
Use the bare/canonical host in `DOMAIN`. Example: set `DOMAIN=synapsis.example.com`, not `www.synapsis.example.com`.
If you also want `www.synapsis.example.com` to work, create a DNS record for `www` pointing to the same server. The bundled Caddy config will redirect `www` to the canonical `DOMAIN`.
Optional (advanced):
- `NEXT_PUBLIC_NODE_DOMAIN` to override the node domain (defaults to `DOMAIN`)
- `NEXT_PUBLIC_APP_URL` to override the public app URL used by background jobs (auto-derived from the node domain)