X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Ftemplates%2Fsyncproxy%2Fsyncproxy.debian.org-apache.erb;h=fa910c1ce0e4486a9a37775692379ec3980330f2;hb=810511398d02d8b7ebeafcbe6dcd6cdd86add92e;hp=db525133fe0b1406aa64cf08a743ce014c79c8ff;hpb=8f515ddb04dacc7c5ccb304639aefe6b6c7f921e;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/templates/syncproxy/syncproxy.debian.org-apache.erb b/modules/roles/templates/syncproxy/syncproxy.debian.org-apache.erb index db525133f..fa910c1ce 100644 --- a/modules/roles/templates/syncproxy/syncproxy.debian.org-apache.erb +++ b/modules/roles/templates/syncproxy/syncproxy.debian.org-apache.erb @@ -5,12 +5,17 @@ <% vhost_listen = [ (bind != '') ? "#{bind}:80" : "*:80", (bind6 != '') ? "#{bind6}:80" : "*:80"].uniq.join(' ') + vhost_listen_443 = [ (bind != '') ? "#{bind}:443" : "*:443", (bind6 != '') ? "#{bind6}:443" : "*:443"].uniq.join(' ') %> - > +Use common-debian-service-https-redirect "<%= vhost_listen %>" <%= syncproxy_name %> + > ServerName <%= syncproxy_name %> DocumentRoot /srv/www/syncproxy.debian.org/htdocs + Use common-debian-service-ssl <%= syncproxy_name %> + Use common-ssl-HSTS + Require all granted @@ -20,7 +25,7 @@ <%= lines = [] -%w{debian debian-backports debian-debug debian-security}.each do |archive| +%w{debian debian-debug debian-security}.each do |archive| varname = 'has_srv_mirrors_' + archive.gsub(/[\/-]/,'_') if has_variable?(varname) and (eval(varname)) == 'true' lines << " Alias /#{archive}/project/trace/ /srv/mirrors/#{archive}/project/trace/"