Welcome! Log In Create A New Profile

Advanced

Clarification on Nginx Unit ASGI

October 21, 2021 01:56AM
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*
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Clarification on Nginx Unit ASGI

ismail783 October 21, 2021 01:56AM

Re: Clarification on Nginx Unit ASGI

Sergey A. Osokin October 21, 2021 09:36AM

Re: Clarification on Nginx Unit ASGI

ismail783 October 21, 2021 12:30PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 313
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready