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

set the value of auth_jwt_key implicitely #83

Open
farzadam opened this issue Mar 6, 2023 · 2 comments
Open

set the value of auth_jwt_key implicitely #83

farzadam opened this issue Mar 6, 2023 · 2 comments

Comments

@farzadam
Copy link

farzadam commented Mar 6, 2023

I try to use this module. when I explicitly set the value for auth_jwt_key it works just fine. But if I set it as: auth_jwt_key $public_key; which is set by a js module beforehand, I get the error: nginx: [error] failed to open public key file
is there a way to solve this issue?

@JoshMcCullough
Copy link
Contributor

Sorry for the delay in response. We'll look into allowing variables to be used in the auth_jwt_key directive and others where it might make sense.

@AndreMiras
Copy link

If what we want to achieve is retrieving from an environment variable, the Nginx official Docker image runs envsubst as part of the entrypoint.
This is a common way for filing config from environment variables.
https://github.com/nginxinc/docker-nginx/blob/1.25.2/entrypoint/20-envsubst-on-templates.sh#L31-L74

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants