feat(server): per-server defaultDomain for auto-generated app domains#110
Merged
Conversation
…ains Adds a nullable default_domain column on the server table so each deploy server can declare its own wildcard base. generateRandomDomain uses that base when set, falling back to the fork's sslip.io default. The manager (no serverId) reads DEFAULT_DOMAIN from env. Server settings expose the field, and preview deployments default the wildcard domain to the target server's defaultDomain. Ports Dokploy#4364 by @tatdorian (closed unmerged upstream 2026-05-08).
# Conflicts: # apps/dokploy/components/dashboard/application/preview-deployments/show-preview-settings.tsx # apps/dokploy/drizzle/meta/_journal.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports Dokploy#4364 by @tatdorian (closed unmerged upstream 2026-05-08).
Adds a nullable
default_domaincolumn on theservertable so each deploy server can declare its own wildcard base domain.generateRandomDomainuses that base when set, falling back to the fork'ssslip.iodefault. The manager (noserverId) readsDEFAULT_DOMAINfrom the environment.serverschema +apiCreateServer/apiUpdateServergaindefaultDomain(persisted via the existing...inputspread).defaultDomain(or*.sslip.io).Migration: slot
0198_moaning_vermin(ALTER TABLE "server" ADD COLUMN "default_domain" text;), drizzle-kit regenerated with the fork's journal numbering.Verification:
pnpm --filter=dokploy run typecheckpasses in a fresh worktree.