Skip to content

Conversation

@rolodato
Copy link
Contributor

@rolodato rolodato commented Apr 4, 2025

This enables Uvicorn's --proxy-headers option: https://www.uvicorn.org/settings/#http

This is useful when enabling Uvicorn access logs, if we want to see the actual client IPs and not just a loopback address.

This option must be used in combination with the FORWARDED_ALLOW_IPS environment variable. I chose not to add it to the config file for simplicity.

@rolodato rolodato merged commit 27101dc into main Apr 7, 2025
2 checks passed
@rolodato rolodato deleted the feat/proxy-headers branch April 7, 2025 11:48
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