Skip to content

Instantly share code, notes, and snippets.

@kazzkiq
Last active March 23, 2017 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kazzkiq/02e1d830600c79fb08fbce44669909e0 to your computer and use it in GitHub Desktop.
Save kazzkiq/02e1d830600c79fb08fbce44669909e0 to your computer and use it in GitHub Desktop.

1.0. Open NGINX config file (the one responsible for projects.peercoin.net)

1.1. Add this block as the first "location" block:

location ~ /.well-known {
	root /var/www/pc-showcase/;
	allow all;
}

1.2. Restart NGINX


2.0. Run the command (update the first part with your letsencrypt path):

sudo ~/letsencrypt/letsencrypt-auto certonly -a webroot --agree-tos --renew-by-default --webroot-path=/var/www/pc-showcase -d peercoin.net -d www.peercoin.net -d talk.peercoin.net -d projects.peercoin.net

2.1 Copy the cert key path and paste to NGINX config

2.2 Restart NGINX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment