Add priority: 1000 to ddev-expose-node-app-on-subdomain blog#646
Merged
Conversation
I believe this to be incorrect, if you add something to additional hostnames it will be routed to the web container.
stasadev
reviewed
May 21, 2026
Comment on lines
-38
to
-46
| In your project’s `.ddev/config.yaml`, define the project name and the additional hostname you want to use. For example: | ||
|
|
||
| ```yaml | ||
| name: example | ||
|
|
||
| additional_hostnames: | ||
| - frontend.example | ||
| ``` | ||
|
|
Member
There was a problem hiding this comment.
I believe this to be incorrect, if you add something to additional hostnames it will be routed to the web container. I think at least.
additional_hostnamesis needed for the SSL certificatefrontend.example.ddev.site- "It will be routed to the web container" - no, see
priority: 100in the Traefik config - it overrides the default route.
|
🌐 Fork Preview for PR #646 https://pr-646.ddev-com-fork-previews.pages.dev This preview updates automatically when you push changes to your fork. |
priority: 1000 to ddev-expose-node-app-on-subdomain blog
|
PR closed. The Cloudflare Pages preview is no longer updated. |
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.
As per traefik documentation:
rules length
It's easy for the HostRegexp rule to become longer than 100: a long hostname, and/or a couple additional hostnames and there it is. So suggest a priority of 1000 instead. Maybe we should suggest 100 000, even? The internal rules have 64 bit maxint priority so 100 000 is not outlandish.