bundles/nginx: only add well-known alias for vhosts which use letsencrypt
This commit is contained in:
parent
20f4c182ad
commit
68e79b4883
1 changed files with 2 additions and 0 deletions
|
@ -74,9 +74,11 @@ server {
|
||||||
% endif
|
% endif
|
||||||
add_header Permissions-Policy interest-cohort=();
|
add_header Permissions-Policy interest-cohort=();
|
||||||
|
|
||||||
|
% if ssl == 'letsencrypt':
|
||||||
location /.well-known/acme-challenge/ {
|
location /.well-known/acme-challenge/ {
|
||||||
alias /var/lib/dehydrated/acme-challenges/;
|
alias /var/lib/dehydrated/acme-challenges/;
|
||||||
}
|
}
|
||||||
|
% endif
|
||||||
|
|
||||||
% if security_txt:
|
% if security_txt:
|
||||||
location = /.well-known/security.txt {
|
location = /.well-known/security.txt {
|
||||||
|
|
Loading…
Reference in a new issue