Add "Also add www / non-www variant" toggle to the Add Domain dialog
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- nextjs, typescript
Direzione di ricerca
Start by locating the Add Domain dialog and its existing domain.create call; the issue does not name file paths or tests. Check how the dialog handles host input and existing domains, then trace which domain settings are passed to creation. Done means the Add dialog can create both host variants with matching settings under the stated conditions, without changing Edit or the API.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What problem will this feature address?
Each domain entry in Dokploy only matches its exact host. An application that should answer on both example.com and www.example.com needs two domain entries. Whichever one is missing returns a Traefik 404, even when DNS already points to the server, because no router matches that host. Order doesn't matter: adding www.example.com first leaves example.com returning 404, and the reverse is also true.
So each app needs a second, near-identical domain added by hand: the same path, port, HTTPS toggle and certificate provider, with only the www. prefix added or removed. With several apps (we run 7 on one server), this is repetitive and easy to forget. The usual result is a 404 on one variant that someone reports later.
The existing "Redirect to www" / "Redirect to non-www" presets (#333, #3088) don't solve this. They only work once both domain entries exist.
Describe the solution you'd like
Add a toggle under the Host field in the Add Domain dialog:
- Also add www.example.com (or Also add example.com when the host starts with
www.)
When it's enabled, clicking Create saves two ordinary domain entries with the same path, internal path, container port, HTTPS, certificate and middleware settings. Only the host differs:
- Host
example.comalso createswww.example.com. - Host
www.example.comalso createsexample.com.
Behaviour:
- Off by default, and shown only in the Add dialog, not Edit.
- Hidden for wildcard hosts and IP addresses.
- Disabled, with an "already exists" hint, when the service already has that host.
- No schema change and no migration. The UI calls the existing
domain.createtwice, so the API is unchanged. - Existing domains are untouched. Nothing is added automatically to services that already exist.
After creation, the two entries are independent, exactly as if they had been added by hand. To pick one main address, users keep using Advanced -> Redirects as they do today.
Possible follow-up, not part of this request: link the two variants in one domain entry (Host(`a`) || Host(`b`)) so edits stay in sync and one certificate covers both.
Describe alternatives you've considered
- Adding the second domain manually on every app. This is what we do today.
- Advanced -> Redirects presets. They still need both domains added first.
- A manual Traefik router in the Traefik File System. That works, but it lives outside the service and gets out of sync when services change.
Additional context
No response
Will you send a PR to implement it?
Yes
- Lingua principale
- TypeScript
- Stelle
- 38.8k
- Fork
- 3.2k
- Merge medio
- 1g 10h
- PR unite (30g)
- 110
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Dokploy/dokploy
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Dokploy/dokploy#6151 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Healthy Swarm task shows an empty `(Error:)` suffix on the last row of the Containers tabForse già presa @AyhamJo7 l’ha presa 4 giorni fa. Apertaneeds-triage🔍
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
Dokploy/dokploy#6115 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Global search (Cmd/Ctrl+J) never sorts results by relevanceForse già presa @hamidzr l’ha presa 6 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
Dokploy/dokploy#6107 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
`utils/dns/ovh.ts`: the zone-listing 403 handler replaces the provider's error instead of chaining itForse già presa @SyncWithRaj l’ha presa 8 giorni fa. Apertabug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
Dokploy/dokploy#6075 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
MongoDB with Replica Sets enabled: container exits with code 0 and restarts in a loop (generated startup script never waits on mongod)Forse già presa @ghazy2001 l’ha presa 10 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Dokploy/dokploy#6051 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Dokploy/dokploy
Issue simili
-
[Bug]: RUN_STARTED resets the run's tool-call tally even when a subscriber suppresses the eventApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
ag-ui-protocol/ag-ui#3504 ·
I maintainer di solito rispondono entro 1 giorno
-
area/profiles area/sessions comp/desktop desktop/chat desktop/sessions P2 type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
NousResearch/hermes-agent#161712 ·
I maintainer di solito rispondono entro 1 giorno
-
bug p3
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
rothgar/rabble.radio#283 ·
I maintainer di solito rispondono entro 1 giorno
-
bug from-app needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
nightly-labs/openbot#19805 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
OHDSI/Data2Evidence#3760 ·
I maintainer di solito rispondono entro 3 giorni