From 1c18557adc194890aaca1300d851cd54a5b88418 Mon Sep 17 00:00:00 2001 From: Mohammed Amar-Bensaber Date: Wed, 28 Aug 2024 22:11:24 +0200 Subject: nginx: postinst: setup certbot and restart service --- debian/nginx-config.postinst | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 debian/nginx-config.postinst (limited to 'debian') diff --git a/debian/nginx-config.postinst b/debian/nginx-config.postinst new file mode 100644 index 0000000..92449c8 --- /dev/null +++ b/debian/nginx-config.postinst @@ -0,0 +1,22 @@ +#!/bin/sh +# +# TODO: Handle "$1". + +set -e + +#DEBHELPER# + +# `certbot` *must* be installed by this package. +certbot \ + --nginx \ + --agree-tos \ + --redirect \ + --hsts \ + --staple-ocsp \ + --email renken+letsencrypt@shione.net \ + -d shione.net \ + -d www.shione.net \ + -d git.shione.net + +# Apply new nginx configuration. +deb-systemd-invoke restart nginx -- cgit v1.2.3