]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/planet/templates/default/planet-mirror-redirect-update.erb
Convert various URLs to https
[chef.git] / cookbooks / planet / templates / default / planet-mirror-redirect-update.erb
index 06f698b3f204c53d6ee40ee889d7bfe675cd73d5..eb8ded7d42b722ba792e795dc708537ddccd0e9a 100644 (file)
@@ -10,7 +10,7 @@
 $_YEAR = date('Y');
 $_PLANET_FOLDER = '<%= node[:planet][:dump][:xml_directory] %>/'.$_YEAR.'/';
 $_PLANET_REGEX = "/^(planet|changesets)\-\d{6}(\-nolt)?\.osm\.(bz2|gz)$/";
-$_MIRROR = 'http://ftp.heanet.ie/mirrors/openstreetmap.org/planet/'.$_YEAR.'/';
+$_MIRROR = 'https://ftp.heanet.ie/mirrors/openstreetmap.org/planet/'.$_YEAR.'/';
 $_PLANET_HTACCESS = realpath('<%= node[:planet][:dump][:xml_directory] %>/..').'/.htaccess';
 
 function _MIRROR_FILE_SIZE($url) {
@@ -41,7 +41,7 @@ if (is_dir($_PLANET_FOLDER)) {
                                                        echo 'Adding: '.$file."\n";
                                                        fwrite($htaccess_handle,        'RewriteRule'."\t".
                                                                                        '^('.$file_slashed.')$'."\t".
-                                                                                       'http://ftp.heanet.ie/mirrors/openstreetmap.org/$1'."\t".
+                                                                                       'https://ftp.heanet.ie/mirrors/openstreetmap.org/$1'."\t".
                                                                                        '[R,L]'."\n");
                                        }
                                }