Django Unleashed

Unleashing the Full Potential of Web Development

Follow publication

Member-only story

A step-by-step guide for AWS EC2 provisioning using Terraform: Nginx Reverse Proxy with SSL Cert Using Ansible and GitHub Actions for Django — Part 17

Joel Wembo
Django Unleashed
Published in
11 min readJul 13, 2024

End-To-End Pipeline deploying using GitHub Actions and Docker for Nginx Reverse Proxy with SSL Certificate for a Django application — Part 17. In web development, ensuring a secure and efficient application deployment process is crucial. This article delves into establishing an end-to-end pipeline for a Django application running on an Ubuntu server. We’ll leverage Docker for containerization and GitHub Actions for automated deployment, with Nginx as a secure reverse proxy and SSL certificates safeguarding communication.

Table of Contents

· Table of Contents
Prerequisites
Introduction
Step 1: EC2 Provisioning
Step 2: DNS Record Setup
Step 3: Install python 3
Step 4: Install Docker in your Virtual Machine
Step 5: Deploy your Django App
Step 6: Installer nginx
Step 7: Install Certbot
Step 8: Request an SSL Certificate for your custom domain
Step 9: Configure Nginx as a Reverse Proxy
Step 10: Enable the Configuration and Restart Nginx
Step 11: Ansible playbook to automate the setup
· Conclusion
· About me
References

Prerequisites

  1. A server with a public IP and domain name (api.prodxcloud.io).
  2. The domain should point to your server’s IP address.
  3. Install Nginx and Certbot on your server.
  4. The Django application should be running and accessible on port 8585.
  5. Terraform or Ansible

Introduction

In the digital age, securing your web applications with SSL/TLS encryption is essential for ensuring the privacy and integrity of data. One efficient way to achieve this is by using Nginx as a…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Django Unleashed
Django Unleashed

Published in Django Unleashed

Unleashing the Full Potential of Web Development

Joel Wembo
Joel Wembo

Written by Joel Wembo

Cloud Solutions Architect @ prodxcloud. Expert in Django, AWS, Azure, Kubernetes, Serverless Computing & Terraform. https://www.linkedin.com/in/joelotepawembo

Responses (1)

Write a response