X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Ftemplates%2Fstatic-mirroring%2Fvhost%2Flintian.debian.org.erb;h=89a74d0f7731b322c2569747e15b1aa73e45cde2;hb=c54d3c0937444eb08707008c85d9e8734448c135;hp=8d1bfd538ee9ab11058a8d5be2419213221195a7;hpb=b62d3a35f372967a51f9a9fffa18b90828af5574;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/templates/static-mirroring/vhost/lintian.debian.org.erb b/modules/roles/templates/static-mirroring/vhost/lintian.debian.org.erb index 8d1bfd538..89a74d0f7 100644 --- a/modules/roles/templates/static-mirroring/vhost/lintian.debian.org.erb +++ b/modules/roles/templates/static-mirroring/vhost/lintian.debian.org.erb @@ -1,15 +1,13 @@ +<% if scope.function_has_static_component(['lintian.debian.org']) -%> + Use common-dsa-vhost-https-redirect lintian.debian.org - > - ServerName lintian.debian.org + ServerAdmin lintian-maint@debian.org ErrorLog /var/log/apache2/lintian.debian.org-error.log CustomLog /var/log/apache2/lintian.debian.org-access.log privacyssl - Use common-debian-service-ssl lintian.debian.org - Use common-ssl-HSTS - UserDir disabled @@ -18,12 +16,11 @@ Use common-dsa-vhost-https-redirect lintian.debian.org AddDefaultCharset utf-8 - # These two lines makes apache serve "lintian.log.gz" as a text/plain with encoding gzip - # making it easier to view the log in the browser. - <% if @lsbmajdistrelease > '7' -%> - Require all granted - <% end -%> + Require all granted + # These three lines makes apache serve + # "lintian.log.gz" as a text/plain with encoding gzip + # making it easier to view the log in the browser. RemoveType .gz AddEncoding x-gzip .gz AddType text/plain .log @@ -53,5 +50,22 @@ Use common-dsa-vhost-https-redirect lintian.debian.org RewriteRule ^/source/([a-z0-9-]+)/?$ /${source-map:$1} [L,R,NE] # Versioned request RewriteRule ^/source/([a-z0-9-]+)/([a-zA-Z0-9.+:~-]+)$ /${source-map:$1/$2} [L,R,NE] + + + > + ServerName lintian.debian.org + Use common-debian-service-ssl lintian.debian.org + Use common-ssl-HSTS + + Use vhost-inner-lintian.debian.org + + +<% if scope.function_onion_global_service_hostname(['lintian.debian.org']) -%> + > + ServerName <%= scope.function_onion_global_service_hostname(['lintian.debian.org']) %> + Use vhost-inner-lintian.debian.org +<% end %> +<% end -%> + # vim:set syn=apache: