2020-12-31 16:04:47 +00:00
|
|
|
.PHONY: packer reissue-certs
|
2020-12-29 20:20:26 +00:00
|
|
|
|
2020-12-31 16:04:47 +00:00
|
|
|
packer-manifest.json: syncthing-config.xml \
|
|
|
|
syncthing.json \
|
|
|
|
syncthing.conf \
|
|
|
|
syncthing@.service \
|
|
|
|
syncthing-cert.pem \
|
|
|
|
syncthing-key.pem \
|
|
|
|
certbot/live/syncthing.jeremydormitzer.com/fullchain.pem \
|
|
|
|
certbot/live/syncthing.jeremydormitzer.com/privkey.pem
|
2020-12-29 20:20:26 +00:00
|
|
|
packer build syncthing.json
|
|
|
|
|
|
|
|
syncthing-config.xml: syncthing-config.xml.template
|
|
|
|
sigil -p -f syncthing-config.xml.template > syncthing-config.xml
|
2020-12-31 03:22:18 +00:00
|
|
|
|
|
|
|
syncthing-cert.pem: syncthing-cert.pem.template
|
|
|
|
sigil -p -f syncthing-cert.pem.template > syncthing-cert.pem
|
|
|
|
|
|
|
|
syncthing-key.pem: syncthing-key.pem.template
|
|
|
|
sigil -p -f syncthing-key.pem.template > syncthing-key.pem
|
2020-12-31 14:45:52 +00:00
|
|
|
|
|
|
|
certbot/live/syncthing.jeremydormitzer.com/fullchain.pem certbot/live/syncthing.jeremydormitzer.com/privkey.pem &: do.ini
|
2020-12-31 16:04:47 +00:00
|
|
|
certbot certonly -n \
|
|
|
|
--agree-tos \
|
|
|
|
--email ${CERTBOT_EMAIL} \
|
|
|
|
--dns-digitalocean \
|
|
|
|
--dns-digitalocean-credentials do.ini \
|
|
|
|
--config-dir ./certbot \
|
|
|
|
--work-dir ./certbot \
|
|
|
|
--logs-dir ./certbot \
|
|
|
|
-d syncthing.jeremydormitzer.com
|
2020-12-31 14:45:52 +00:00
|
|
|
|
|
|
|
do.ini: do.ini.template
|
|
|
|
sigil -p -f do.ini.template > do.ini
|
|
|
|
chmod 600 do.ini
|
2020-12-31 16:04:47 +00:00
|
|
|
|
|
|
|
reissue-certs:
|
|
|
|
rm -rf certbot
|
|
|
|
make
|