Context (2022-11-13): In recent days, undertheseanlp.com is not stable. After running a few hours, it dead. I traced access logs and realize it has many weired requests. So I decide to run underthesea service with nginx and Gunicorn.
We will install and configure the Gunicorn application server. This will serve as an interface to our application, translating client requests in HTTP to Python calls that our application can process. We will then set up Nginx in front of Gunicorn to take advantage of its high performance connection handling mechanisms and its easy-to-implement security features.
Gunicorn
Gunicorn (‘Green Unicorn’) is a pure-Python WSGI server for UNIX.
[x] Setup gunicorn
Nginx
Nginx is a web server that can also be used as a reverse proxy, load balancer, mail proxy and HTTP cache
Context (2022-11-13): In recent days, undertheseanlp.com is not stable. After running a few hours, it dead. I traced access logs and realize it has many weired requests. So I decide to run underthesea service with
nginx
andGunicorn
.I follow these tutorial, it has a clear plan.
Gunicorn
Gunicorn (‘Green Unicorn’) is a pure-Python WSGI server for UNIX.
Nginx
Nginx is a web server that can also be used as a reverse proxy, load balancer, mail proxy and HTTP cache