Monday, August 15, 2022

Setup NGINX with certificates from certbot

These instructions should work for Debinan/Ubuntu 

# Install nginx

apt install nginx

# run nginx (debain/ubuntu)

systemctl start nginx

#########Do this first###########

#Setup DNS to point to your webserver IP (Route53, Google Domains, etc)

#Setup Inbound Port forwarding on your firewall for port 80 to point to your nginx web server (This is done in your Router/Firewall)

######Setup a basic config in your nginx.conf##########

vi /etc/nginx.conf 

server {
        server_name example.com;
}

#Test to make sure you can hit the sample nginx page at the domain that you setup above

curl http://example.com # insert your domain name here or get one from duckdns.org

# Setup Certbot Certbot Instructions | Certbot (eff.org)

sudo snap install core; sudo snap refresh core
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
sudo certbot --nginx

References I used:

TCP and UDP Load Balancing | NGINX Plus

Nginx Reverse Proxy: How to Setup and Configure | PhoenixNAP KB

https://certbot.eff.org/instructions?ws=nginx&os=debianbuster


Sunday, July 24, 2022

Clone Docker Volumes

I can't take credit for this, but I definitely used this. Saving this for my future self looking for this again.

-------------------------

To clone docker volumes, you can transfer your files from one volume to another one. For that you have to manually create a new volume and then spin up a container to copy the contents.

Someone has already made a script for that, which you might use: https://github.com/gdiepen/docker-convenience-scripts/blob/master/docker_clone_volume.sh

If not, use the following commands (taken from the script):

# Supplement "old_volume" and "new_volume" for your real volume names

docker volume create --name new_volume

docker container run --rm -it \
           -v old_volume:/from \
           -v new_volume:/to \
           alpine ash -c "cd /from ; cp -av . /to"

Friday, July 22, 2022

Docker Install Ubuntu (convivence script)

Instead of digging through the docs at Docker's website here are the key commands to quickly install docker on a Linux host.
$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh

Install Docker Engine on Ubuntu | Docker Documentation

 





Thursday, July 7, 2022

A Cloud Guru - Machine Learning Class

 GitHub - ACloudGuru-Resources/Course_AWS_Certified_Machine_Learning

Energy Storage using Sand?

Storing renewable energy is expensive, this company has developed a way to store heat energy in a "sand battery". This can be combined with other renewables to create a more efficient system overall. I am excited to see this technology applied to our biggest cities. 

 Polar Night Energy


Wednesday, May 25, 2022