-
Notifications
You must be signed in to change notification settings - Fork 161
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
Cannot set trustProxy with fastify-cli #619
Labels
bug
Confirmed bug
Comments
Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests. |
Let me try it |
hei @alexandrucancescu I resolve that in #654 |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
Fastify version
4.12.0
Plugin version
No response
Node.js version
18.12.1
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
13.1
Description
I cannot set trustProxy to true when starting my fastify server with fastify-cli.
Steps to Reproduce
1. Use config.js
then run it with:
2. .env file
TRUST_PROXY=TRUE
TRUST_PROXY=true
and also
TRUST_PROXY=1
3. Pass env variable
And all other variations ( TRUE, 1, true )
None of them are setting trustProxy to true, I tested it. The only way it works is by creating the server manually:
Expected Behavior
I expected at least one of them to work, the env file or config.js
The text was updated successfully, but these errors were encountered: