2021-10-03 16:32:42 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -xe
|
|
|
|
|
2021-10-04 17:29:59 +00:00
|
|
|
sudo mv /tmp/do.ini ~/do.ini
|
|
|
|
sudo certbot certonly \
|
|
|
|
-n \
|
|
|
|
--agree-tos \
|
|
|
|
-m 'jeremy.dormitzer@gmail.com' \
|
|
|
|
--dns-digitalocean \
|
|
|
|
--dns-digitalocean-credentials ~/do.ini \
|
|
|
|
-d '*.jeremydormitzer.com'
|
|
|
|
|
2021-10-04 21:30:46 +00:00
|
|
|
sudo mv /tmp/nginx.conf /etc/nginx/nginx.conf
|
2021-10-04 17:29:59 +00:00
|
|
|
sudo mkdir -p /var/log/nginx
|
2021-10-03 16:32:42 +00:00
|
|
|
sudo systemctl enable nginx
|
2021-10-04 17:29:59 +00:00
|
|
|
|
|
|
|
sudo mv /tmp/certbot-renew.timer /etc/systemd/system/
|
|
|
|
sudo mv /tmp/certbot-renew.service /etc/systemd/system/
|
|
|
|
sudo systemctl enable certbot-renew.timer
|
2021-10-04 21:30:46 +00:00
|
|
|
|
|
|
|
sudo mv /tmp/sshd_config /etc/ssh/sshd_config
|
|
|
|
sudo systemctl restart sshd
|