Updates for supporting certbot (#2)

This commit is contained in:
Jesus Federico
2020-02-13 12:53:51 -05:00
committed by GitHub
parent 137eb687bd
commit a3830e3cc6
3 changed files with 103 additions and 2 deletions

View File

@@ -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;