From 55865c526ca37cef94bf74a9e0deea2cde9a6bcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Tue, 2 Jun 2020 16:17:34 +0200 Subject: [PATCH] Add the Let's Encrypt hook dir to the config Only enabled when there is no TLS cert. This is already part of the certbot nginx vhost --- site-cookbooks/kosmos_gitea/templates/default/nginx_conf.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/site-cookbooks/kosmos_gitea/templates/default/nginx_conf.erb b/site-cookbooks/kosmos_gitea/templates/default/nginx_conf.erb index 4f67da8..a77bc02 100644 --- a/site-cookbooks/kosmos_gitea/templates/default/nginx_conf.erb +++ b/site-cookbooks/kosmos_gitea/templates/default/nginx_conf.erb @@ -16,6 +16,10 @@ server { <% else -%> listen 80; server_name <%= @server_name %>; + + location /.well-known { + root "/var/www/<%= @server_name %>"; + } <% end -%> location / {