-
Say Goodbye to running Ollama localy: Harness Cloudflare Workers AI with Continue.dev in VSCode

As a developer, you’re always looking for ways to enhance your productivity and streamline your workflow. One of the most exciting developments in recent times is the integration of Cloudflare Workers AI with local development environments, made possible by the Continue.dev plugin for Visual Studio Code (VSCode). In this tutorial, we’ll walk you through the…
-
Build Your Own Google Translate Clone with Cloudflare AI Workers

In the ever-evolving landscape of web technologies, the Cloudflare Workers platform has emerged as a powerful tool for creating serverless applications. One particularly exciting application of this technology is using AI Workers to create smart translation services—think Google Translate but fully under your control. In this blog post, we’ll walk through how to build a…
-
Downloading SSE-C Encrypted Objects from Any S3-Compatible Storage with CURL

In the world of cloud computing, Amazon S3 (Simple Storage Service) has become a go-to solution for storing data due to its flexibility and scalability. However, many developers and businesses rely on alternative S3-compatible services such as Cloudflare R2 and MinIO. A common need when working with these services is securely downloading data, especially when…
-
Replication of R2 Buckets using Cloudflare Workers: A Custom Solution

As organizations increasingly rely on cloud storage solutions, effective data replication between storage buckets is crucial. However, as many have discovered, Cloudflare’s R2 storage does not support direct replication between different R2 buckets. To solve this challenge, I developed a custom solution using Cloudflare Workers. This blog post will walk you through how to set…
-
A Deeper Dive into Caching History vs Today

In the early days of computing, cache memory was introduced to address the significant speed differences between CPU speeds and main memory (RAM) access times. The first caches were built into hardware as a way to bridge this performance gap. The idea was that while accessing RAM was slow (in nanoseconds), CPU operations needed to…
-
Understanding Kube-Proxy: The Power of Hybrid Load Balancing in Kubernetes

In the ever-evolving world of cloud-native applications and container orchestration, Kubernetes stands as a paradigm for managing and deploying applications. One of the critical components in this ecosystem is kube-proxy, which plays a fundamental role in enabling communication between services and their corresponding pods. To optimize traffic management, kube-proxy employs a hybrid approach that combines…
-
Harnessing FreeRADIUS for Secure Network Authentication

In today’s digital age, securing network access is paramount for organizations of all sizes. With increasing cybersecurity threats, the need for robust authentication protocols has never been greater. One of the most powerful tools available for ensuring secure network access is FreeRADIUS, an open-source RADIUS server that has gained significant traction in various environments. What…
-
How to Use GitLab CI to Trigger AWX Job Template on Merge to Main Branch

In today’s software development landscape, Continuous Integration and Continuous Deployment (CI/CD) are crucial for achieving efficiency and reliability. One powerful combination is utilizing GitLab CI to trigger job templates in AWX (Ansible Tower) when changes are merged into the main branch. This guide will walk you through the necessary steps to implement this workflow seamlessly.…
-
Unlocking Network Policy Management with Cilium in Kubernetes

Introduction: As Kubernetes has become the de facto standard for container orchestration, ensuring network security and policy management has become a critical component of any Kubernetes deployment. Traditional approaches to network security often rely on manual configuration and require extensive expertise, making it difficult to scale and maintain. This is where Cilium comes in –…
-
Mastering NGINX: How to Stop, Start, and Reload the Binary, Sending Signals, and Testing Configurations

Introduction NGINX is a popular web server that is widely used to serve web applications. As with any process, sometimes you may need to stop, start, or reload NGINX to apply changes to its configuration or troubleshoot issues. In this blog post, we will demonstrate how to stop, start, and reload NGINX binary, send signals…
-
Understanding NGINX Configuration Directory Structure and Files

NGINX is a popular open-source web server software that is widely used to serve web applications. One of the key aspects of NGINX is its configuration, which is managed through a set of files and directories. In this blog post, we will delve into the NGINX configuration directory structure, explain the default NGINX core config…
-
Nginx Troubleshooting: Basic Use Cases and Solutions

Nginx provides a powerful configuration syntax that allows you to fine-tune your server’s behavior. Here are some key configuration options to help you troubleshoot common issues: Interpreting Logs Nginx logs are a treasure trove of information for troubleshooting. By analyzing these logs, you can identify issues with your configuration, connections, and errors. Here are some…
-
Mastering Shared Memory Zones in NGINX: A Comprehensive Guide

Introduction NGINX, a popular web server software, is known for its high-performance and flexibility. One of the key features that contributes to its efficiency is its ability to use shared memory zones. In this blog post, we will delve into the concept of shared memory zones in NGINX, explain how and why they are used,…
-
Configuring NGINX as a Load Balancer: A Comprehensive Guide

Load balancing is a crucial aspect of ensuring high availability, scalability, and reliability in modern web applications. NGINX, a popular open-source web server, can be configured as a load balancer to distribute incoming traffic across multiple servers, ensuring that no single point of failure brings down the entire system. In this blog post, we’ll explore…
-
Mastering NGINX: Managing Connections and Bandwidth

Introduction NGINX is a popular open-source web server that provides a high-performance and scalable solution for handling high-traffic websites and applications. One of the key features of NGINX is its ability to manage connections and bandwidth, which is crucial for ensuring the performance and security of your website. In this blog post, we will demonstrate…
-
Securing Your NGINX Server: Restricting Access and Authenticating Requests

Introduction NGINX is a popular web server that provides a high-performance, scalable, and flexible platform for hosting web applications. As with any web server, security is a top concern to ensure that your server remains safe from unauthorized access and malicious activities. In this blog post, we will demonstrate how to restrict access to your…
-
Mastering NGINX: Managing Connections and Bandwidth for Optimal Performance

Introduction NGINX is a powerful web server that can handle high-traffic websites and applications with ease. However, managing connections and bandwidth is crucial to ensure optimal performance, prevent overload, and prevent security threats. In this blog post, we will explore how to manage connections and bandwidth using NGINX, including the difference between rate limiting and…
-
Securing Your NGINX Server: Restricting Access and Authentication

NGINX is a powerful web server that provides a wide range of features to secure your web applications. In this blog post, we will demonstrate how to restrict access to your NGINX server based on IP address, HTTP method, authenticate users, and restrict URIs. Restricting Access to NGINX Based on IP Address To restrict access…
-
Nginx: Troubleshoot TLS Security Settings – Identifying Connection Errors and Invalid Certificates

As a web server administrator, ensuring the security of your website’s TLS connection is crucial. Nginx, a popular web server software, provides robust support for TLS (Transport Layer Security) encryption. However, even with proper configuration, errors can occur. In this blog post, we’ll cover how to identify TLS connection errors and troubleshoot invalid certificates in…
-
Configuring NGINX as a Reverse Proxy: A Comprehensive Guide

As a powerful web server and reverse proxy, NGINX is widely used to enhance the performance, security, and scalability of web applications. In this blog post, we’ll delve into the world of NGINX as a reverse proxy, exploring its unique features, configuration options, and best practices. How Traffic Routing is Handled in NGINX as a…
-
Configure NGINX as a Content Cache Server: A Comprehensive Guide

As a web server, NGINX is widely used for its high performance, scalability, and flexibility. One of its lesser-known features is its ability to act as a content cache server. In this blog post, we will explore the process of configuring NGINX as a content cache server, including defining a minimum retention policy, configuring path…
-
Automating Cloudflare Redirects with Terraform: A Step-by-Step Guide

In this blog post, we’ll explore how to use Terraform to create a Cloudflare ruleset that redirects visitors from specific countries to corresponding country-code top-level domains (ccTLDs). We’ll cover the necessary steps to set up the infrastructure, configure the rules, and deploy the solution. Prerequisites Before we dive into the Terraform configuration, make sure you…
-
Choosing the Right SSL Algorithms for Your Site

Secure Sockets Layer (SSL) and its successor, Transport Layer Security (TLS), are protocols for establishing authenticated and encrypted links between networked computers. When implementing SSL/TLS on your website, it’s important to choose the right algorithms to ensure secure and efficient data transmission. This post will discuss the best SSL/TLS algorithms for different types of sites.…
-
Unlock Faster Page Loads: A Step-by-Step Guide to Configuring HTTP/2 on Apache

Introduction: In today’s fast-paced digital landscape, website speed is crucial for providing a seamless user experience. Slow page loads can lead to high bounce rates, low engagement, and even negatively impact your search engine rankings. One way to boost your website’s performance is by enabling HTTP/2, the latest version of the HTTP protocol. In this…
-
Webhook to automatically check if the env specified on the deployment to be applied have their configmaps or secrets already in the cluster

This utilises k8s MutatingWebhookConfiguration which listens or create or update operations on deployments and statefulsets and sends the information to be checked via webhook to the flask application to check if the dependecies are met. Get the repository : Deploy cert-manager using helm helm install \ cert-manager jetstack/cert-manager \ –namespace cert-manager \ –create-namespace \ –version…
-
Automate Jira Issue Creation for Expiring Certificates with Cert-manager

Hello, tech enthusiasts! Today, we’re going to explore an exciting integration between Cert-manager and Jira. This setup will automatically create Jira issues when a certificate is about to expire, ensuring that you’re always on top of your certificate management game. Let’s dive in! Prerequisites Deploy the Custom Controller That’s it! You’ve successfully integrated Cert-manager with…
-
Customizing CloudFront with Terraform: Redirecting by Country

In this blog post, we’ll explore how to use Terraform to create a custom CloudFront function that redirects traffic based on the viewer’s country. We’ll also set up a CloudFront distribution with the custom function and configure it to work with our desired origin. The CloudFront Function Our custom function, myredirect_redirect_function, is written in CloudFront’s…
-
Speed Up Your Site: Efficient Font Serving Through Cloudflare Workers and R2

In the world of web development, managing fonts effectively is crucial for fast-loading and responsive websites. With tools like Cloudflare Workers and R2 storage, we can serve fonts efficiently, ensuring they are both quickly accessible and safe from frequent loading requests. This guide will take you through how to implement and manage website fonts using…
-
Effortless S3 Auditing in AWS: Automate with Lambda and SNS

Using Terraform to Create S3 Buckets, SNS Topic, and Lambda for Auditing Bucket Objects In this article, we will walk through how to use Terraform to create two Amazon S3 buckets, an SNS topic, and a Lambda function that audits objects from one bucket and writes the result to another. The flow of this architecture…