HTTPS for www.ports.debian.org
authorAurelien Jarno <aurelien@aurel32.net>
Thu, 26 May 2016 23:32:44 +0000 (01:32 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Thu, 26 May 2016 23:32:44 +0000 (01:32 +0200)
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
modules/roles/manifests/static_mirror.pp
modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb

index bff5335..55379a1 100644 (file)
@@ -81,6 +81,7 @@ class roles::static_mirror {
        ssl::service { 'd-i.debian.org'      : ensure => "ifstatic", notify => Service['apache2'], }
 
        ssl::service { 'backports.debian.org'  : ensure => "ifstatic", notify => Service['apache2'], key => true, }
+       ssl::service { 'www.ports.debian.org'  : ensure => "ifstatic", notify => Service['apache2'], key => true, }
        ssl::service { 'news.debian.net'       : ensure => "ifstatic", notify => Service['apache2'], key => true, }
        ssl::service { 'debaday.debian.net'    : ensure => "ifstatic", notify => Service['apache2'], key => true, }
        ssl::service { 'timeline.debian.net'   : ensure => "ifstatic", notify => Service['apache2'], key => true, }
index 3feff61..04691c5 100644 (file)
@@ -131,7 +131,10 @@ lines.join("\n")
 ######################
 # www.ports.debian.org
 <% if scope.function_has_static_component(['www.ports.debian.org']) -%>
-<Virtualhost <%= vhost_listen %> >
+
+Use common-dsa-vhost-https-redirect www.ports.debian.org
+
+<Virtualhost <%= vhost_listen_443 %> >
        ServerName www.ports.debian.org
        ServerAlias www.ports-backend.debian.org
        ServerAdmin debian-admin@lists.debian.org
@@ -139,6 +142,9 @@ lines.join("\n")
        ErrorLog /var/log/apache2/www.ports.debian.org-error.log
        CustomLog /var/log/apache2/www.ports.debian.org-access.log privacy
 
+       Use common-debian-service-ssl $name
+       Use common-ssl-HSTS
+
        <IfModule mod_userdir.c>
                UserDir disabled
        </IfModule>