X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fnginx%2Fsite.d%2Fcyclo-www-tls%2Flocal.sh;fp=etc%2Fnginx%2Fsite.d%2Fcyclo-www-tls%2Flocal.sh;h=b1a8d62d5985a402c954945a0414aa27cb3c5eda;hb=c97e10b2504a559b023d5b14c46f337f0ee95027;hp=0000000000000000000000000000000000000000;hpb=a5a6e6329b52aff5811314e611b3f6122eb21e5b;p=lhc%2Fateliers.git diff --git a/etc/nginx/site.d/cyclo-www-tls/local.sh b/etc/nginx/site.d/cyclo-www-tls/local.sh new file mode 100644 index 0000000..b1a8d62 --- /dev/null +++ b/etc/nginx/site.d/cyclo-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.cyclocoop.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" +