From 569ce06ea74f5d80e3a65b4e83e1f02a6ad9fae7 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Mon, 29 Jun 2020 20:15:28 +0000 Subject: More repository vhost fixes --- modules/buildsystem/templates/vhost_repository.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules') diff --git a/modules/buildsystem/templates/vhost_repository.conf b/modules/buildsystem/templates/vhost_repository.conf index 0e50d78b..9fa207a6 100644 --- a/modules/buildsystem/templates/vhost_repository.conf +++ b/modules/buildsystem/templates/vhost_repository.conf @@ -22,13 +22,13 @@ distros = scope.lookupvar('buildsystem::var::distros::distros') <%- if repo_allow_from_ips != nil || repo_allow_from_domains != nil then access_requires = [ 'all denied' ] - if distro['repo_allow_from_ips'] != nil then - for allow in distro['repo_allow_from_ips'] do + if repo_allow_from_ips != nil then + for allow in repo_allow_from_ips do access_requires << 'ip ' + allow end end - if distro['repo_allow_from_domains'] != nil then - for allow in distro['repo_allow_from_domains'] do + if repo_allow_from_domains != nil then + for allow in repo_allow_from_domains do access_requires << 'host ' + allow end end -- cgit v1.2.1