Question

How can I have nginx added to this stack.

Posted October 18, 2021 107 views
PythonDjangoPython FrameworksDevelopmentDigitalOcean App Platform

is it possible to add nginx to this setup? so that we use nginx as reverse proxy to gunicorn above?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hello,

If you are using the App platform there is no need to add Nginx.

The App Platform takes care of the server-side of things and the SSL certificate set up for you automatically.

Is there a specific reason why you need to add Nginx as well?

You would usually need Nginx so that you could install an SSL certificate, but this would be required in case that you were deploying your Django application on a Droplet as per the instructions here:

https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-20-04

Best,
Bobby

by Erin Glass
Django is a powerful web framework that can help you get your Python application or website off the ground. Django includes a simplified development server for testing your code locally, but for anything even slightly production related, a more secure and powerful web server is required.