Feng's Notes Isn't coding fun?
Posts with the tag Cloudflare:

Cache on the edge with Cloudflare Workers

I recently found a nice project which offers iframe line to display stars of any github repo. I found it could be useful on my another building website which aims to track the trending repos on github. So I tried to put it on and it worked well…at first. How when I put several repos on one page the tool stopped working and don’t show the star number.

I checked its source code https://github.com/mdo/github-buttons and found it is just a simple proxy to github api which certainly has a rate limit. Before I gave up and turned to other solutions like building a backend service to fetch the data and caching, then I remembered my old friend Cloudflare. Can I do something on the edge with the help of cloudflare workers?

Self-Host Wordpress on K8s

As I mentioned in my previous post I have setup a kubernetes(k3s) cluster on my home server. I was thinking how I could use this then I decided to host a blog site using the most used CMS on the internet, Wordpress. Here I would explain how I did it.

How to set up a full-stack home server

I will explain in this article how to deploy and serve a kubenetes cluster(k3s) using your home laptop/PC. I will also show you how to expose your services to the internet with cloudflare tunnel. I will use a simple web app as an example to show how to build a full-stack application and serve it with the home server.

Here is the overview of the architecture setup.

infras.png

The laptop running all these stuff is a 7 year old Thinkpad with Interl i5 + 16G Mem installed with Ubuntu