Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wildcards in redirect routes #42

Open
drewAdorno opened this issue Nov 13, 2024 · 1 comment
Open

Wildcards in redirect routes #42

drewAdorno opened this issue Nov 13, 2024 · 1 comment
Labels
cli related to the CLI interface feature feature request server related to the server / core logic

Comments

@drewAdorno
Copy link

drewAdorno commented Nov 13, 2024

First off just want to thank you again for this tool, this has been a critical part of my environment for some time now

Less of an issue and more of a question here

For my purposes it would be very useful for me to use a wildcard. We provide our customers each with a unique route and if I want to go to their specific domain locally, I need to add it to my list. For example here is my current list

image

Is this something that localias already supports, ultimately being able to provide something like the red rectangle to cover all my routes would be ideal

@peterldowns peterldowns added cli related to the CLI interface server related to the server / core logic feature feature request labels Nov 22, 2024
@peterldowns
Copy link
Owner

peterldowns commented Nov 22, 2024

I'm glad you've been enjoying localias, Drew! This is a great idea. It makes sense as a localias capability, and needing wildcard subdomains is definitely a common situation for people doing webdev.

In order to make this happen, I'll need to do some experimenting to understand how wildcard subdomains interact with the on-demand local certificate issuance flow that Caddy gives us.

I'll also consider the user experience — wildcards can be hard to reason about sometimes, especially when they match domains that may have a more concrete rule. For instance, what should happen here:

foo.woventeams.test: 3000
*.woventeams.test: 5000

For some background on how I'm thinking about "complexity" and "capability" when it comes to adding features to localias, see this comment on issue #39. As long as the localias user experience is reasonably simple and easy to understand and debug, I am open to it.

If you or anyone else would like to send a PR with a proof-of-concept implementation, I would be very willing to help get it merged in a way that makes sense to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli related to the CLI interface feature feature request server related to the server / core logic
Projects
None yet
Development

No branches or pull requests

2 participants