computer-playbook/roles/letsencrypt/templates/letsencrypt.conf.j2

17 lines
272 B
Plaintext
Raw Normal View History

2020-12-24 14:27:31 +01:00
server
{
listen 80;
listen [::]:80;
location /
{
return 301 https://$host$request_uri;
}
#letsencrypt
location ^~ /.well-known/acme-challenge/ {
allow all;
root /var/lib/letsencrypt/;
default_type "text/plain";
try_files $uri =404;
}
}