django / daphne

Django Channels HTTP/WebSocket server
BSD 3-Clause "New" or "Revised" License
2.37k stars 266 forks source link

add support for --proxy-headers and friends in runserver #504

Closed sxpert closed 6 months ago

sxpert commented 6 months ago
carltongibson commented 6 months ago

The runserver command is only for use in local development, not to be used with a proxy. (If you need to test particular headers, I'd suggest an ASGI middleware.)

sxpert commented 6 months ago

I'll send a PR... it's not that hard to implement.

carltongibson commented 6 months ago

I think you misunderstand. This isn't in scope for the runserver command. (You're welcome to implement your own version if you need it.)

sxpert commented 6 months ago

ridiculous answer calls for ridiculous counter-measures.