Support passing of uvicorn specific config options to underlying runner #13
Unanswered
anil-enable
asked this question in
Questions
Replies: 1 comment 1 reply
-
We also need --forwarded-allow-ips=* for passing x-forwarded-for headers from a proxy in a Docker setup (from a non localhost IP). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
uvicorn cli has a lot of config options allowing some degree of customization of the server, e.g. --no-server-header (switches off server header)
fastapi cli currently doesn't support these options. This blocks moving from uvicorn to fastapi cli where such customization of server is required
# errors with "No such option: --no-server-header" fastapi dev src/app/main.py --port=8001 --no-server-header
If fastapi cli exposes a way to pass these options to uvicorn, it would be helpful.
Operating System
macOS
Operating System Details
macOS Sonoma Version 14.4.1
Python Version
3.12.0
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions