Posts

Nginx Load Balancing Lab on AWS EC2

Nginx Load Balancing Lab on AWS EC2 — Romanch Jung Rayamajhi Back to Portfolio Nginx AWS EC2 DevOps Nginx Load Balancing Lab on AWS EC2 A hands-on lab guide to setting up Nginx as a load balancer across multiple EC2 instances — covering round-robin, least connections, IP hash, and health checks. RJ Romanch Jung Rayamajhi April 2026 10 min read Architecture Overview Clients users / traffic → Nginx LB :80 load balancer → Backend 1 :8080 app server Backend 2 :8080 app server Backend 3 :8080 app server Nginx distributes traffic acro...

Deploy Quasar + Laravel + MySQL on AWS EC2 (Default VPC)

AWS EC2 Laravel Quasar / Vue.js MySQL A complete, step-by-step guide to deploying a full-stack application — Quasar (Vue.js) frontend, Laravel API backend, and MySQL database — on a single EC2 instance using the default VPC. ARCHITECTURE OVERVIEW Quasar SPA :80 / → Nginx reverse proxy → Laravel API :8000 /api → MySQL 8 :3306 All running on a single EC2 instance (Ubuntu 22.04) inside the default VPC TABLE OF CONTENTS Prerequisites Launch EC2 Instance Install Dependencies Set Up MySQL Deploy Laravel Backend Deploy Quasar Frontend Configure Nginx SSL with Let's Encrypt Troubleshooting STEP 01 Prerequisites Before starting, make sure you have: An AWS account with access to the EC2 dashboard A domain name pointed to your server (optional, but needed for SSL) Your Quasar + Laravel project pushed to a Git repository A local SSH key pair ℹ️ This guide assumes a single-server deployment. For production at scale, consider separat...

EC2 Fundamentals

Image
 Amazon: Elastic Compute Cloud (EC2) Basics Amazon EC2 (Elastic Compute Cloud) is a service within AWS (Amazon Web Services) that lets you rent virtual computers (servers) in the cloud to run applications. Think of it as hiring a computer remotely that you can control, customize, and use just like a computer at home or work. Here’s a breakdown of EC2 in simple terms: What EC2 Is : EC2 provides scalable virtual servers (instances) in the cloud. You can choose different types of instances based on your needs, like more CPU power, memory, or storage. Why Use EC2 : You only pay for what you use. You can scale up or down quickly—      add more instances when you need more computing  power and shut them down when you don’t. No need to manage physical servers or deal with maintenance. How It Works : Launch:         Start a new server (instance) by choosing an Amazon Machine Image (AMI), which is like a template of an operating system and basic soft...

Getting Started with AWS

Image
IAM and AWS CLI IAM console IAM (Identity and Access Management) in AWS helps you securely control who can access your AWS resources. It allows you to create users, groups, and roles, and assign specific permissions to them. This ensures that only authorized people or applications can access certain AWS services or data, keeping your environment secure. IAM policies in AWS are sets of permissions that define what actions users or services can perform on AWS resources. Policies are written in JSON format and can be attached to users, groups, or roles. They specify which resources can be accessed and what actions (like reading, writing, or deleting) can be performed. There are two main types of IAM policies: 1. Managed Policies: Predefined by AWS or custom-made, reusable policies. 2. Inline Policies: Policies directly attached to a specific user, group, or role for more fine-grained control. AWS CLI (Command Line Interface) is a tool that allows you to manage AWS services using comm...

Introduction to AWS Cloud: The Basics of Cloud Computing and AWS Services.

 Introduction to AWS Cloud: The Basics of Cloud Computing & AWS Services Outline: 1. What is cloud computing? Cloud computing is like renting services or storage space on the internet instead of owning them on your computer. Imagine it as using electricity—you don’t need to own a power plant; you just use electricity when you need it and pay for what you use. Key benefits: scalability, cost-efficiency, flexibility, security, speed. 2. What is AWS (Amazon Web Services)? Overview of AWS as the leading cloud service provider. AWS's global infrastructure is a network of data centers strategically located around the world. It consists of Regions, which are geographic areas with multiple Availability Zones (AZs). Each AZ is an isolated data center with its own power, networking, and cooling, ensuring high availability and fault tolerance. 3. Basic Concepts:  Pay-as-you-go pricing: Pay-as-you-go pricing means you only pay for what you use, just like how you pay for utilities lik...

F-string in Python

 ' f-string ' Formatting Python f-strings are a simple and efficient way to format strings. The f-strings make it easy to embed variables directly into a string. Introduced in Python version 3.6 in late 2016, f-strings significantly changed the conventional method of using separate formats for different data types such as floats, integers, and strings.  Here's the basics: How to Use : Start your string with an f or F before the quotation marks. Inside the string, put any variables or expressions you want to use inside curly braces {} . name = "Romanch" age = 25 print(f"My name is {name} and I am {age} years old.") Output: My name is Romanch and I am 25 years old. Why f-strings? Readable : It’s easy to see what the final string will look like, and the code is concise. Efficient : f-strings are faster than other formatting methods; like format() or % . Flexible : You can include expressions and calculations inside {} , not just variables. x = 5 y = 10 ...

How to Connect a Mesh Router to Our Home Wi-Fi Network

Image
First, we should understand what a Mesh Router and Mesh connection are. A Mesh Router is part of a Mesh Wi-Fi system that helps provide a strong and consistent Wi-Fi signal throughout your home. Imagine your Wi-Fi coverage as a net that needs to cover your entire house. In a traditional setup, you have one big net (router) trying to cover everything, but it can’t reach all the corners, creating ‘dead zones’. In a Mesh system, you have multiple smaller nets (mesh routers or nodes) spread out to cover the entire area without leaving any gaps. One node connects to your internet source, and the others communicate with it to extend the Wi-Fi coverage seamlessly.  This way, you get a reliable Wi-Fi signal in every room, and you don’t have to switch between different Wi-Fi networks as you move around your house. A regular Wi-Fi router creates a single access point that broadcasts Wi-Fi signals to limited area whereas mesh networks link two or more access points (which are also called...