X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=etc%2Fnginx%2Fsite.d%2Fcyclocamp-www-tls%2Flocal.sh;fp=etc%2Fnginx%2Fsite.d%2Fcyclocamp-www-tls%2Flocal.sh;h=9fad17d1479417e9e3c504d9d9e40e1243cccdcd;hp=0000000000000000000000000000000000000000;hb=18013c236945db2ca16f6a19aab7e67c3dcdfd9b;hpb=30394f9ae2672667021d4b075569af75e020cffa diff --git a/etc/nginx/site.d/cyclocamp-www-tls/local.sh b/etc/nginx/site.d/cyclocamp-www-tls/local.sh new file mode 100644 index 0000000..9fad17d --- /dev/null +++ b/etc/nginx/site.d/cyclocamp-www-tls/local.sh @@ -0,0 +1,10 @@ +hint="run before: remote/runit-configure nginx -- $site" +assert "sudo test -f /etc/nginx/x509.d/\"$site\"/key.pem" hint + +sudo install -m 664 -o www -g www \ + "$tool"/var/pub/x509/www.cyclocamp.org/crt+ca.pem \ + /etc/nginx/x509.d/"$site"/crt.pem + +sudo rmdir ~www-data/"$site" || true +sudo ln -fns "${site%-tls}" ~www-data/"$site" +