It's still intended to run behind Nginx web server (or some other web server), much like you'd run something like PHP-FPM behind a web server.
Nginx Unit
21–30 of 236 posts
Re: Nginx Unit
#22Re: Nginx Unit
#23Re: Nginx Unit
#24I guess it lost momentum when ZeroMQ did. Anyone know why? Sounds like a dream solution in the current microservice hype.
Re: Nginx Unit
#25It is in beta, but I hope this won't become a commerical-only product.
It's open source at the moment at least and I think it's reasonable to expect at least that the parts that are open source today will remain so in the future. Certainly they could have a commercial version with extra features like they do with Nginx, but as long as they have a useful version of this Nginx Unit available open source I will be happy to use it.
Re: Nginx Unit
#26I think a "how it works" or "design doc" would be really helpful.
That said, the source files do make for pleasant reading. The nginx team has always set a strong example for what good C programming looks like.
EDIT: Their blog post [0] makes this more clear... nginx unit is one of four parts in their new "nginx application platform" [1]
[0] https://www.nginx.com/blog/introducing-nginx-application-pla...
Re: Nginx Unit
#27why do people always use "not recommended" when they actually mean "do not ever do this or you'll end up the laughing stock in the tech press"
Exposing this otherwise awesome API to the public will amount to a free RCE for everybody. So not ever expose this to the public, not even behind some authentication.
It's very cool that by design it's only listening on a domain socket. Don't add a proxy in front of this.
Re: Nginx Unit
#28Re: Nginx Unit
#29Earlier quoted context omitted.
Use a webserver that proxies requests to a wsgi server. We tend to put Caddy in front of Gunicorn which works really well. Also, look into running Gunicorn under supervisord.
Oh, and also use Fabric - http://docs.fabfile.org/en/latest/
Re: Nginx Unit
#30Earlier quoted context omitted.
I have a small flask application which basically is a rest get post API server. I'm struggling to make deployment easy. With PHP, i just push to the application server and rsync that folder into var www html for Apache httpd but what would I do for flask python 3?
Here will go their REST config api to force reloads. BTW, it is a good idea to always do API versioning on production runs. That will eliminate the possibility that different API versions (files stuck in the cache, or simply people who kept browser open for a long time) use the same endpoint