Add nginx configuration
This commit is contained in:
parent
9f6ac08bc0
commit
204af35901
|
@ -15,3 +15,11 @@ A shell script used to renew let’s encrypt certificates
|
||||||
openssl req -new -sha512 -key ix.bzh.key -subj "/" -reqexts SAN -config < (cat /etc/ssl/openssl.cnf < (printf "[SAN]\nsubjectAltName=DNS:ix.bzh,DNS:www.ix.bzh")) > ix.bzh.csr
|
openssl req -new -sha512 -key ix.bzh.key -subj "/" -reqexts SAN -config < (cat /etc/ssl/openssl.cnf < (printf "[SAN]\nsubjectAltName=DNS:ix.bzh,DNS:www.ix.bzh")) > ix.bzh.csr
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Example of nginx configuration for the HTTP challenge
|
||||||
|
|
||||||
|
```
|
||||||
|
location /.well-known/acme-challenge/ {
|
||||||
|
alias /usr/local/www/le-challenges/.well-known/acme-challenge/;
|
||||||
|
try_files $uri $uri/ =404;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue