iwalkalone / Update all certificates with certbot (nginx)
0 likes
0 forks
1 files
Last active 25 minutes 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 likes
0 forks
1 files
Last active 30 minutes 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 likes
0 forks
1 files
Last active 48 minutes 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) |
iwalkalone / Update name.com DNS A record
0 likes
0 forks
1 files
Last active 50 minutes ago
Useful for dynamic IPs and automatic updates to combine with cron
| 1 | #!/bin/bash |
| 2 | |
| 3 | # Configuration |
| 4 | USERNAME="" |
| 5 | API_TOKEN="" |
| 6 | DOMAIN="" |
| 7 | SUBDOMAIN="" # Leave empty or use "@" for the root domain |
| 8 | RECORD_ID="" # You can find this via 'List DNS Records' in their API docs |
| 9 | |
| 10 | IP_FILE="ip.txt" |
Newer
Older