add LE support

This commit is contained in:
Asif Bacchus 2019-10-17 01:32:00 -06:00
parent 0fa9308757
commit 0313a5c8bf

View File

@ -8,6 +8,17 @@ server {
try_files $uri $uri/ =404;
}
# process Let's Encrypt challenges
location ^~ /.well-known/acme-challenge {
# log requests for security reasons
access_log /var/log/nginx/LetsEncrypt_access.log main;
error_log /var/log/nginx/LetsEncrypt_error.log warn;
default_type text/plain;
root /usr/share/nginx/html/letsencrypt;
autoindex on;
}
# error pages
include /etc/nginx/errorpages.conf;
}