bundles/nginx: only add well-known alias for vhosts which use letsencrypt

This commit is contained in:
Franzi 2021-07-01 16:04:46 +02:00
parent 20f4c182ad
commit 68e79b4883
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -74,9 +74,11 @@ server {
% endif
add_header Permissions-Policy interest-cohort=();
% if ssl == 'letsencrypt':
location /.well-known/acme-challenge/ {
alias /var/lib/dehydrated/acme-challenges/;
}
% endif
% if security_txt:
location = /.well-known/security.txt {