mirror of https://gitlab.com/bashrc2/epicyon
Stop nginx before cert generation
parent
fb54bdf405
commit
c91ee85dc4
|
@ -255,7 +255,9 @@ ln -s /etc/nginx/sites-available/YOUR_DOMAIN /etc/nginx/sites-enabled/
|
|||
Generate a LetsEncrypt certificate.
|
||||
|
||||
``` bash
|
||||
systemctl stop nginx
|
||||
certbot certonly -n --server https://acme-v02.api.letsencrypt.org/directory --standalone -d YOUR_DOMAIN --renew-by-default --agree-tos --email YOUR_EMAIL
|
||||
systemctl start nginx
|
||||
```
|
||||
|
||||
And restart the web server:
|
||||
|
|
|
@ -162,7 +162,9 @@ Enable the site:
|
|||
|
||||
Forward port 443 from your internet router to your server. If you have dynamic DNS make sure its configured. Add a TLS certificate:
|
||||
|
||||
systemctl stop nginx
|
||||
certbot certonly -n --server https://acme-v02.api.letsencrypt.org/directory --standalone -d YOUR_DOMAIN --renew-by-default --agree-tos --email YOUR_EMAIL
|
||||
systemctl start nginx
|
||||
|
||||
Restart your web server:
|
||||
|
||||
|
|
|
@ -1537,7 +1537,9 @@ Ever feel like corporate social media is deliberately pressing your buttons or g
|
|||
Forward port 443 from your internet router to your server. If you have dynamic DNS make sure its configured. Add a TLS certificate:
|
||||
</p>
|
||||
<div class="shell">
|
||||
certbot certonly -n --server https://acme-v02.api.letsencrypt.org/directory --standalone -d YOUR_DOMAIN --renew-by-default --agree-tos --email YOUR_EMAIL
|
||||
systemctl stop nginx<br>
|
||||
certbot certonly -n --server https://acme-v02.api.letsencrypt.org/directory --standalone -d YOUR_DOMAIN --renew-by-default --agree-tos --email YOUR_EMAIL<br>
|
||||
systemctl start nginx
|
||||
</div>
|
||||
<p class="intro">
|
||||
Restart your web server:
|
||||
|
|
Loading…
Reference in New Issue