From a3830e3cc6be73b15df6f412fe41eacc7e9c51ed Mon Sep 17 00:00:00 2001 From: Jesus Federico Date: Thu, 13 Feb 2020 12:53:51 -0500 Subject: Updates for supporting certbot (#2) --- nginx/sites.template | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'nginx/sites.template') diff --git a/nginx/sites.template b/nginx/sites.template index ba3c04e..f3c237d 100644 --- a/nginx/sites.template +++ b/nginx/sites.template @@ -9,6 +9,19 @@ server { listen 80; listen [::]:80; + + location /.well-known/acme-challenge/ { + root /var/www/certbot; + } + + location / { + return 301 https://$host$request_uri; + } +} + +server { + server_name $NGINX_HOSTNAME; + listen 443 ssl; listen [::]:443; -- cgit v1.2.3