about summary refs log tree commit diff
path: root/users/glittershark/gws.fyi/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'users/glittershark/gws.fyi/Makefile')
-rw-r--r--users/glittershark/gws.fyi/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/users/glittershark/gws.fyi/Makefile b/users/glittershark/gws.fyi/Makefile
new file mode 100644
index 000000000000..d483e05d49c6
--- /dev/null
+++ b/users/glittershark/gws.fyi/Makefile
@@ -0,0 +1,22 @@
+.PHONY: deploy
+
+deploy:
+	@`nix-build --no-out-link`
+
+renew:
+	@echo Renewing...
+	@certbot renew \
+		--manual \
+		--preferred-challenges dns \
+		--server https://acme-v02.api.letsencrypt.org/directory \
+		--agree-tos \
+		--work-dir $(shell pwd)/letsencrypt/work \
+		--logs-dir $(shell pwd)/letsencrypt/logs \
+		--config-dir $(shell pwd)/letsencrypt/config
+
+backup:
+	@tarsnap -cf $(shell uname -n)-letsencrypt-$(shell date +%Y-%m-%d_%H-%M-%S) \
+		letsencrypt/
+
+open:
+	$$BROWSER "http://gws.fyi"