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

Replace environment variables in matchers as appropriate #93

Open
avirut opened this issue Jan 5, 2023 · 2 comments
Open

Replace environment variables in matchers as appropriate #93

avirut opened this issue Jan 5, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@avirut
Copy link

avirut commented Jan 5, 2023

I'd like to be able to use environment variables within my l4 matchers, e.g.:

"match": [
    {
        "tls": {
            "sni": [
                "{env.DOMAIN}"
            ]
        }
    },
    {
        "http": [
            {
                "host": [
                    "{env.DOMAIN}"
                ]
            }
        ]
    }
],

Unfortunately, it doesn't seem like l4 uses the replacer to do this yet. Would be great if this was possible!

@mholt mholt added the enhancement New feature or request label Jan 5, 2023
@mholt
Copy link
Owner

mholt commented Jan 5, 2023

This should be pretty straightforward, I think. Anyone want to submit a patch?

@vnxme
Copy link
Collaborator

vnxme commented Aug 9, 2024

@tls_sni_env tls sni {env.DOMAIN} is now possible after caddyserver/caddy#6480 is merged.

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