Skip to content

Instantly share code, notes, and snippets.

View myles's full-sized avatar
🦖

Myles Braithwaite myles

🦖
View GitHub Profile
#!/bin/bash
#
# Script to update Linode's DNS Manager for a given name.
#
# Things you need to change.
APIKEY=$(cat ~/.linode-apikey)
LASTIP="/tmp/lastip"
DOMAIN="domain.com"
SOAEMAIL="hostmaster@domain.com"
server {
listen 80;
server_name domain.tld;
rewrite ^(.+)$ https://$server_name$1 redirect;
}
server {
listen 443;
include /etc/nginx/ssl.conf;
server_name domain.tld;