Support passing of uvicorn specific config options to underlying runner #13
Replies: 5 comments 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.
-
also the option to disable access logs would be useful |
Beta Was this translation helpful? Give feedback.
-
Also would be nice to pass |
Beta Was this translation helpful? Give feedback.
-
We need |
Beta Was this translation helpful? Give feedback.
-
I would use a function like this to pass |
Beta Was this translation helpful? Give feedback.
-
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