bundles/nginx: allow vhosts to set their own index files

This commit is contained in:
Franzi 2023-09-02 20:48:41 +02:00
parent 8cfcefcfc4
commit 72607adbfe
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -103,6 +103,9 @@ def index_files(metadata):
vhosts = {} vhosts = {}
for vhost, config in metadata.get('nginx/vhosts', {}).items(): for vhost, config in metadata.get('nginx/vhosts', {}).items():
if 'index' in config:
continue
vhosts[vhost] = { vhosts[vhost] = {
'index': [ 'index': [
'index.html', 'index.html',