Clarification on Nginx Unit ASGI

Ahmad Ismail ismail783 at gmail.com
Thu Oct 21 05:54:05 UTC 2021


I asked After Nginx Unit, Do we still need ASGI like Uvicorn, Hypercorn,
Daphne etc <https://stackoverflow.com/q/69642063/1772898>

There one comment confused me. The comment says:

nginx unit is an ASGI compliant server; you're replacing
> uvicorn/hypercorn/daphne/etc. with nginx unit instead. It's a choice you
> make just like you'd make using either of those three or other alternatives.

I am not understanding what it means. Does it mean, I have to install both
nginx and nginx unit where nginx unit is the replacement for uvicorn /
hypercorn / daphne etc. Or, nginx unit alone can do what nginx + uvicorn /
hypercorn / daphne etc. does.

I asked the same question on FastAPI
<https://github.com/tiangolo/fastapi/issues/3128#issuecomment-947391963>
github repo
<https://github.com/tiangolo/fastapi/issues/3128#issuecomment-947391963>.
There one part of the answer is unclear to me.

> But, but, you will probably need https anyway, I personally prefer some
> proxy, I didn't even try Nginx Unit "way" of applying tls but there is one
> apparently. Nginx Ingress, traefik for k8s, nginx proxy manager for swarm,
> alone traefik docker image or full nginx, probably tens of other solutions.
>
What I understood is I need to do few more things after installing nginx
unit. However, the above quote is not clear to me. Can anyone please
explain what he meant by it. And do I need to install other stuff after
installing nginx unit?

*Thanks and Best Regards,Ahmad Ismail*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20211021/ef6124ca/attachment.htm>


More information about the nginx mailing list