iwalkalone / Update all certificates with certbot (nginx)

0 gustos
0 bifurcaciones
1 archivos
Última actividad 1 hour ago
Renews all certificates about to expire and restarts nginx
1 #!/bin/bash
2
3 sudo certbot renew
4 sudo /etc/init.d/nginx restart

iwalkalone / Create a new certificate with certbot (nginx)

0 gustos
0 bifurcaciones
1 archivos
Última actividad 1 hour ago
Creates a new certificate with certbot and setup in nginx existing configuration
1 #!/bin/bash
2
3 DOMAIN=$1
4
5 sudo certbot certonly --nginx -d $DOMAIN
6 sudo certbot install --nginx -d $DOMAIN

iwalkalone / Update CDMON DNS A record

0 gustos
0 bifurcaciones
1 archivos
Última actividad 1 hour ago
Useful for dynamic IPs and automatic updates to combine with cron
1 #!/bin/bash
2
3 APIKEY=""
4 DOMAIN=""
5
6 IP_FILE="ip.txt"
7
8 # Get current public IP
9 NEW_IP=$(curl -s https://api.ipify.org)
Siguiente Anterior