From 7aba5a6491db77630db5d4ca67d6428f8217c627 Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Thu, 12 Oct 2023 09:14:52 -0300 Subject: [PATCH] feat: add default location for ACME cerf --- nginx.conf.sigil | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nginx.conf.sigil b/nginx.conf.sigil index 4df3952..d1b1f97 100644 --- a/nginx.conf.sigil +++ b/nginx.conf.sigil @@ -45,6 +45,13 @@ server { {{ end }} # Default location block + + # Let's Encrypt ACME Challenge + location ^~ /.well-known/acme-challenge/ { + root /var/www/letsencrypt/; + try_files $uri =404; + } + location / { proxy_pass http://{{ $.APP }}-{{ $upstream_port }}; {{ $proxy_settings }}