add LE support
This commit is contained in:
parent
0fa9308757
commit
0313a5c8bf
@ -8,6 +8,17 @@ server {
|
|||||||
try_files $uri $uri/ =404;
|
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
|
# error pages
|
||||||
include /etc/nginx/errorpages.conf;
|
include /etc/nginx/errorpages.conf;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user