Add TLS for video.debian.net and the redirects within it
authorPaul Wise <pabs@debian.org>
Mon, 21 Aug 2017 11:40:08 +0000 (07:40 -0400)
committerPaul Wise <pabs@debian.org>
Mon, 21 Aug 2017 11:42:53 +0000 (07:42 -0400)
meetings-archive.debian.net now supports https so
using https for both the initial request and the
redirect to meetings-archive would be nice.

modules/roles/manifests/static_mirror.pp
modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb

index 2b0d6e1..43d252f 100644 (file)
@@ -122,6 +122,7 @@ class roles::static_mirror {
        ssl::service { 'mozilla.debian.net'            : ensure => "ifstatic", notify  => Exec['service apache2 reload'], key => true, }
        ssl::service { 'news.debian.net'               : ensure => "ifstatic", notify  => Exec['service apache2 reload'], key => true, }
        ssl::service { 'timeline.debian.net'           : ensure => "ifstatic", notify  => Exec['service apache2 reload'], key => true, }
+       ssl::service { 'video.debian.net'              : ensure => "ifstatic", notify  => Exec['service apache2 reload'], key => true, }
        ssl::service { 'wnpp-by-tags.debian.net'       : ensure => "ifstatic", notify  => Exec['service apache2 reload'], key => true, }
        # dc
        ssl::service { '10years.debconf.org'           : ensure => "ifstatic", notify  => Exec['service apache2 reload'], key => true, }
index 1f7990a..21af9b1 100644 (file)
@@ -281,10 +281,20 @@ lines.join("\n")
        RedirectPermanent / http://ftp.ports.debian.org/
 </VirtualHost>
 
-<VirtualHost <%= @vhost_listen %> >
+<Macro vstatic-vhost-video.debian.net>
        ServerName video.debian.net
        ServerAdmin debian-admin@debian.org
-       Redirect / http://meetings-archive.debian.net/pub/debian-meetings/
+       Redirect / https://meetings-archive.debian.net/pub/debian-meetings/
+</Macro>
+
+<VirtualHost <%= @vhost_listen %> >
+       Use vstatic-vhost-video.debian.net
+</VirtualHost>
+
+<VirtualHost <%= @vhost_listen_443 %> >
+       Use vstatic-vhost-video.debian.net
+       Use common-debian-service-ssl video.debian.net
+       Use common-ssl-HSTS
 </VirtualHost>
 
 # historical sites