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

feat(api): allow for configuration of trusted proxies #128

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

m90
Copy link
Contributor

@m90 m90 commented Aug 24, 2023

Companion PR for wbstack/api#637

@@ -152,6 +152,11 @@ app:
tracingEnabled: false
errorReportingEnabled: false

trustedProxy:
# if planning to use this, pass a list of proxy IPs or CIDRs:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume it works but I was surprised not to see cidr when grepping the docs. Is that just undocumented functionality?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand it correctly, this is basically https://github.com/fideloper/TrustedProxy vendored into Laravel itself, which also does not mention CIDRs, but uses them in its documentation https://github.com/fideloper/TrustedProxy/wiki/IP-Addresses-of-Popular-Services

@m90 m90 merged commit 6a3c10a into main Aug 24, 2023
2 checks passed
@m90 m90 deleted the fr/api-trust-proxies branch August 24, 2023 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants