X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Ftemplates%2Fstatic-mirroring%2Fvhost%2Fstatic-vhosts-simple.erb;h=983264ed156d4147eeb8403ceb5910edbecf7553;hb=442288773cb84d250a80d1848f3c17a122acd5f5;hp=834c5d99211225c7f92aecacd24ed8cfb3ce3486;hpb=1914af73e5e8f62c3058ac19135802a7777acbb6;p=mirror%2Fdsa-puppet.git
diff --git a/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb b/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb
index 834c5d992..983264ed1 100644
--- a/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb
+++ b/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb
@@ -15,6 +15,19 @@
ServerAlias network-test-backend.debian.org
+
+
+ CustomLog /var/log/apache2/bits.debian.org-public-access.log privacy+geo
+
+
+
+
+ AddDefaultCharset utf-8
+
+ ForceType text/plain
+
+
+
<%=
def vhost(lines, sn, type=nil)
@@ -46,6 +59,10 @@ vhost(lines, "d-i.debian.org" , "ssl")
vhost(lines, "appstream.debian.org", "ssl")
vhost(lines, "dsa.debian.org" , "ssl")
vhost(lines, "rtc.debian.org" , "ssl")
+vhost(lines, "onion.debian.org" , "ssl")
+
+vhost(lines, "bits.debian.org", "ssl-with-extra")
+vhost(lines, "metadata.ftp-master.debian.org", "with-extra")
vhost(lines, "10years.debconf.org" , "ssl")
vhost(lines, "debconf0.debconf.org", "ssl")
@@ -65,74 +82,18 @@ vhost(lines, "deb.debian.org", "with-extra")
lines.join("\n")
-%>
-######################
-# metadata.ftp-master.debian.org
-<% if scope.function_has_static_component(['metadata.ftp-master.debian.org']) -%>
- >
- ServerName metadata.ftp-master.debian.org
- ServerAdmin debian-admin@lists.debian.org
-
- ErrorLog /var/log/apache2/metadata.ftp-master.debian.org-error.log
- CustomLog /var/log/apache2/metadata.ftp-master.debian.org-access.log privacy
-
- Use common-static-base metadata.ftp-master.debian.org
- AddDefaultCharset utf-8
-
- ForceType text/plain
-
-
-<% end -%>
-
-######################
-# bits.debian.org
-<% if scope.function_has_static_component(['bits.debian.org']) -%>
-
- ServerName bits.debian.org
- ServerAdmin debian-admin@lists.debian.org
-
- ErrorLog /var/log/apache2/bits.debian.org-error.log
-
- CustomLog /var/log/apache2/bits.debian.org-public-access.log privacy+geo
-
-
- Use common-static-base bits.debian.org
-
-
- >
- RewriteEngine on
-
- RewriteEngine On
- RewriteCond %{REQUEST_URI} !^/feeds/
- RewriteRule ^/(.*)$ https://bits.debian.org/$1 [R,L]
- #RewriteRule ^/(.*)$ https://bits.debian.org/$1 [R=301,L]
-
- Use static-bits.debian.org-base
- CustomLog /var/log/apache2/bits.debian.org-access.log privacy
-
-
- >
- Use static-bits.debian.org-base
- CustomLog /var/log/apache2/bits.debian.org-access.log privacyssl
-
- Use common-debian-service-ssl bits.debian.org
- Use common-ssl-HSTS
-
-<% end -%>
-
######################
# release.debian.org
<% if scope.function_has_static_component(['release.debian.org']) -%>
Use common-dsa-vhost-https-redirect release.debian.org
- >
- ServerName release.debian.org
+
+
+
ServerAdmin debian-admin@debian.org
ErrorLog /var/log/apache2/release.debian.org-error.log
CustomLog /var/log/apache2/release.debian.org-access.log privacy
- Use common-debian-service-ssl release.debian.org
- Use common-ssl-HSTS
-
Use common-static-base release.debian.org
RewriteEngine on
@@ -156,7 +117,21 @@ Use common-dsa-vhost-https-redirect release.debian.org
ForceType text/plain
+
+
+ >
+ ServerName release.debian.org
+ Use common-debian-service-ssl release.debian.org
+ Use common-ssl-HSTS
+ Use vhost-inner-release.debian.org
+<% if scope.function_onion_global_service_hostname(['release.debian.org']) -%>
+ >
+ ServerName <%= scope.function_onion_global_service_hostname(['release.debian.org']) %>
+ Use vhost-inner-release.debian.org
+
+<% end -%>
+
<% end -%>
# www.backports.org