This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# run these first to install certbot globally with the route53 plugin | |
# $ sudo apt install python-setuptools | |
# $ sudo easy_install pip | |
# $ sudo -H pip install certbot-dns-route53 | |
# verify the route53 plugin is present | |
# $ certbot plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
tailscale status | while IFS= read -r aHost; do | |
hostname=$(echo "$aHost" | awk '{print $2}' | cut -d '-' -f 1) | |
ip=$(echo "$aHost" | awk '{print $1}') | |
hostctl add domains tailscale "$hostname.ts" --ip "$ip" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### Set prompt basics #### | |
# set variable identifying the chroot you work in (used in the prompt below) | |
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then | |
debian_chroot=$(cat /etc/debian_chroot) | |
fi | |
# set a fancy prompt (non-color, unless we know we "want" color) | |
case "$TERM" in | |
xterm-color) color_prompt=yes;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen 443 ssl http2; | |
# make yourself an SSL certificate for *.test.test (and your dhparam file if you're so inclined) | |
ssl_certificate /etc/nginx/ssl/test.cert; | |
ssl_certificate_key /etc/nginx/ssl/test.key; | |
# your other favourite SSL settings go here |
OlderNewer