From b25a9e1068d58a5465c472f88a7d9e0f6db983d1 Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Mon, 2 Apr 2018 20:31:56 +0200 Subject: [PATCH] Set up lists.alioth.debian.org to alioth-lists.debian.net redirect --- modules/roles/manifests/static_mirror.pp | 1 + .../static-mirroring/vhost/static-vhosts-simple.erb | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/modules/roles/manifests/static_mirror.pp b/modules/roles/manifests/static_mirror.pp index 96e607cac..ebccd14fe 100644 --- a/modules/roles/manifests/static_mirror.pp +++ b/modules/roles/manifests/static_mirror.pp @@ -106,6 +106,7 @@ class roles::static_mirror { ssl::service { 'incoming.debian.org' : ensure => "ifstatic", notify => Exec['service apache2 reload'], key => true, } ssl::service { 'incoming.ports.debian.org' : ensure => "ifstatic", notify => Exec['service apache2 reload'], key => true, } ssl::service { 'lintian.debian.org' : ensure => "ifstatic", notify => Exec['service apache2 reload'], key => true, } + ssl::service { 'lists.alioth.debian.org' : ensure => "present", notify => Exec['service apache2 reload'], key => true, } ssl::service { 'manpages.debian.org' : ensure => "ifstatic", notify => Exec['service apache2 reload'], key => true, } ssl::service { 'mirror-master.debian.org' : ensure => "ifstatic", notify => Exec['service apache2 reload'], key => true, } ssl::service { 'onion.debian.org' : ensure => "ifstatic", notify => Exec['service apache2 reload'], key => true, } 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 fea7de7e5..74656a293 100644 --- a/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb +++ b/modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb @@ -298,6 +298,15 @@ lines.join("\n") Use common-ssl-HSTS +Use common-dsa-vhost-https-redirect lists.alioth.debian.org + > + ServerName lists.alioth.debian.org + ServerAdmin debian-admin@debian.org + Use common-debian-service-ssl lists.alioth.debian.org + Use common-ssl-HSTS + Redirect / https://alioth-lists.debian.net/ + + # historical sites ################## # now only redirects remain -- 2.20.1