From 204af35901ee6a0124b6f3cca2404e0a3be204b4 Mon Sep 17 00:00:00 2001 From: alarig Date: Mon, 9 Apr 2018 14:37:26 +0200 Subject: [PATCH] Add nginx configuration --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 5905faf..65b3ba5 100644 --- a/README.md +++ b/README.md @@ -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 ``` +## 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; + } +```