bundles/nginx: use metadata reactor to determine index files

This commit is contained in:
Franzi 2020-10-31 10:41:33 +01:00
parent 3ee570a47a
commit e2d8923dee
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 30 additions and 6 deletions

View file

@ -1,7 +1,7 @@
server {
server_name ${domain};
root ${webroot if webroot else '/var/www/{}/'.format(domain)};
index ${index if index else 'index.html index.htm'};
root ${webroot if webroot else '/var/www/{}/'.format(vhost)};
index ${' '.join(index)};
% if node.metadata['nginx']['use_ssl_for_all_connections']:
listen 443 ssl http2;