Skip to main content

NGINX Shenanigans

I will be exposing my self hosted repo soon that will contain some ansible scripts and stuff I used to build out my environment without any guesswork. Also will be the repo I am using to build my flux+K8s cluster that is to be my debut into full fledged gitops. I will share ALL of my nginx configs etc from there as well when we get to that point. Sorry guys its a trickle getting back up and going.

Most recent updates: 02/01/2025 09:04:32 UTC

Generate SSL Certs the caveman way with simple Terminal Commands.

Installing certbot if needed:

sudo apt-get install python3-certbot-dns-cloudflare

Store the cloudflare api token key:

mkdir /some/path/to/the
sudo chmod 0700 /some/path/to/the
sudo chmod 0400 /some/path/to/the/api_access_secret.ini
sudo nano /some/path/to/the/api_access_secret.ini

The contents of the api_access_secret.ini should be:

dns_cloudflare_api_token = <yourtopsecretcloudflareapitoken>

Pulling wildcard certs for a domain:

sudo certbot -v certonly --dns-cloudflare --dns-cloudflare-credentials /some/path/to/the/api_access_secret.ini -d 'prplanit.com' -d '*.prplanit.com'

Return Public IP with curl, one-liner:

curl ifconfig.me