Skip to content

Instantly share code, notes, and snippets.

View waiphyo285's full-sized avatar
🐶
code & coffee

Wai Phyo Naing waiphyo285

🐶
code & coffee
View GitHub Profile

Setting Up Nginx with SSL on Ubuntu for Domain Proxy

This guide will walk you through the steps to install Nginx on an Ubuntu server, set up a domain to proxy to localhost:3000, and install an SSL certificate using Certbot.

Step 1: Update Your Package Index

First, ensure that your package index is up to date:

sudo apt update

Setting Up MongoDB Authentication

Step 1: Updating the MongoDB Configuration File

Open the mongod.conf file in a text editor with superuser privileges. You can use nano, vim, or any other text editor of your choice. Here’s how to do it with nano:

sudo nano /etc/mongod.conf

Add or update the following lines to enable authorization: