How To Serve Flask Applications with Gunicorn and Nginx

In this guide, we’ll build a simple Python application using the Flask microframework on your server. We’ll set up the Gunicorn application server, and configure Nginx to act as a front-end reverse proxy to serve your Flask application. Choose your operating system below to get started.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.