feat(domain): add ability to enable/disable domains#4476
Open
jasael wants to merge 1 commit into
Open
Conversation
- Added 'enabled' field to domain table schema and migrations. - Updated Traefik configuration logic to dynamically remove domain routing when disabled without deleting the database record. - Skipped injection of Traefik docker labels in Docker Compose when the domain is disabled, and triggered auto-reload/rebuild. - Modified frontend UI with a toggle switch in the domains table to enable/disable domains. - Fixed sslip.io development domain generator to use 127.0.0.1 instead of empty string so local domains resolve in dev environments.
Contributor
Author
|
This video shows how to enable and disable domains in both standard applications and Compose-based applications and templates. video_test.mp4 |
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.
What is this PR about?
This PR introduces the ability to temporarily enable or disable configured domains in Dokploy.
When a domain is disabled, its routing is removed from the Traefik proxy and its labels are skipped in Docker Compose deployments, all without deleting the domain record from the database.
This logic is fully integrated into the domain lifecycle:
Additionally, this PR fixes local development
.sslip.iodomain generation to use127.0.0.1instead of an empty string, so that generated domains resolve properly in local development environments.Checklist
Before submitting this PR, please make sure that:
canarybranch.Issues related (if applicable)
closes #4237
Screenshots (if applicable)