From ff17dd597229ef3679204a0a1202ee286cb659f7 Mon Sep 17 00:00:00 2001 From: Hieu Truong Date: Mon, 1 Aug 2022 14:22:29 +0700 Subject: [PATCH] Fix could not renew certbot because listen 443 is not apply challenge --- data/nginx/app.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/nginx/app.conf b/data/nginx/app.conf index 52dc0e78..ce4fba9a 100644 --- a/data/nginx/app.conf +++ b/data/nginx/app.conf @@ -22,6 +22,10 @@ server { include /etc/letsencrypt/options-ssl-nginx.conf; ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; + location /.well-known/acme-challenge/ { + root /var/www/certbot; + } + location / { proxy_pass http://example.org; proxy_set_header Host $http_host;