Add nginx configuration

This commit is contained in:
Alarig Le Lay 2018-04-09 14:37:26 +02:00
parent 9f6ac08bc0
commit 204af35901

View file

@ -15,3 +15,11 @@ A shell script used to renew lets 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
```
## 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;
}
```