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

[FEATURE] Subdomain wildcard / regex #633

Open
1 task done
Myzel394 opened this issue Sep 12, 2023 · 2 comments
Open
1 task done

[FEATURE] Subdomain wildcard / regex #633

Myzel394 opened this issue Sep 12, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Myzel394
Copy link
Contributor

What's needed and why?

Sometimes you want to forward all subdomains to your upstream proxy. If you got multiple TLDs for example, you'd have to declare a config for each of them. Also you might want to capture all subdomains. I added some examples below

Implementations ideas (optional)

Add the ability to use a regex, here are some examples of how one could use it:

.*\.?example\.com - Allow any subdomain like test.example.com 24hours.example.com
[a-z]+\.example\.com - Allow any char subdomains like test.example.com abc.example.com
example\.(com|net|org) - Catch multiple TLDs at once like example.com example.net example.org

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Myzel394 Myzel394 added the enhancement New feature or request label Sep 12, 2023
@Myzel394
Copy link
Contributor Author

Myzel394 commented Sep 13, 2023

oh and for the settings we could define like a map for each domain, like this:

SERVER_NAME= tlds=example\.(com|net|org) subdomains=[a-z]+\.example\.com

tlds_USE_REVERSE_PROXY=yes
subdomains_USE_BAD_BEHAVIOR=no

@TheophileDiot
Copy link
Member

Hi @Myzel394, thank you for opening this feature request ! By any chance is this sort of a duplicate of this ? #173 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants