Update README.md
This commit is contained in:
parent
2ce8158414
commit
f701317d45
1 changed files with 1 additions and 27 deletions
28
README.md
28
README.md
|
|
@ -2,30 +2,4 @@ Checklist:
|
||||||
|
|
||||||
- [x] Setup a random IPv6 for the web server
|
- [x] Setup a random IPv6 for the web server
|
||||||
- [x] [CAA record](https://letsencrypt.org/docs/caa/)
|
- [x] [CAA record](https://letsencrypt.org/docs/caa/)
|
||||||
|
- [x] [Issue a certificate](CERTIFICATE.md)
|
||||||
To issue a certificate:
|
|
||||||
|
|
||||||
1. Set certificates in your server .conf to this:
|
|
||||||
```
|
|
||||||
ssl_certificate /etc/nginx/snakeoil.pem;
|
|
||||||
ssl_certificate_key /etc/nginx/snakeoil.key;
|
|
||||||
```
|
|
||||||
|
|
||||||
3. Issue the certificate:
|
|
||||||
```
|
|
||||||
docker compose exec acme mkdir /etc/ssl/<domain>
|
|
||||||
docker compose exec acme --issue --server letsencrypt -d <domain> --webroot /var/www/html/<domain>
|
|
||||||
docker compose exec acme --install-cert -d <domain> --key-file /etc/ssl/<domain>/key.pem --fullchain-file /etc/ssl/<domain>/fullchain.pem
|
|
||||||
```
|
|
||||||
|
|
||||||
4. Set certificates in your server .conf to this:
|
|
||||||
```
|
|
||||||
ssl_certificate /etc/ssl/<domain>/fullchain.pem;
|
|
||||||
ssl_certificate_key /etc/ssl/<domain>/key.pem;
|
|
||||||
```
|
|
||||||
|
|
||||||
5. Restart nginx:
|
|
||||||
```
|
|
||||||
docker compose exec nginx nginx -s reload
|
|
||||||
```
|
|
||||||
You have to do this (or restart) every up to 3 months.
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue