A collection of posts about nginx and related.
Wildcard Certs
#!/bin/bash # By Brett Petch # apt-get install -y socat # install acme # curl https://get.acme.sh | sh # remove req for personal info /root/.acme.sh/acme.sh --set-default-ca --server letsencrypt export hostname="your.domain" export NJALLA_Token="API" # can swap out dns_cf with your dns provider. Make sure to export key first. /root/.acme.sh/acme.sh --force --issue --dns dns_njalla -d "${hostname}" -d "*.${hostname}" mkdir -p /etc/nginx/ssl/${hostname} # swap this out to whatever the name of the server is /root/....