From 2c8b95794966fe3a0f87b195ffdb926a004de7df Mon Sep 17 00:00:00 2001 From: Russ Garrett Date: Sat, 6 Jan 2018 10:38:58 +0000 Subject: [PATCH] Switch replication URL to HTTPS The discussion about moving OSM services to HTTPS-only continues. Although everything should be happy following 302 redirects I thought I'd remove one variable and move the default URL to HTTPS. Seems to work fine for me. --- docs/tutorial.rst | 2 +- update/state/state.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial.rst b/docs/tutorial.rst index 12cd3bb..81531de 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -210,7 +210,7 @@ To start the update process:: You can stop processing new diff files SIGTERM (``crtl-c``), SIGKILL or SIGHUP. You should create systemd/upstart/init.d service for ``imposm3 run`` to always run in background. -You can change to hourly updates by adding `replication_url: "http://planet.openstreetmap.org/replication/hour/"` and `replication_interval: "1h"` to the Imposm configuration. +You can change to hourly updates by adding `replication_url: "https://planet.openstreetmap.org/replication/hour/"` and `replication_interval: "1h"` to the Imposm configuration. One-time update diff --git a/update/state/state.go b/update/state/state.go index 9d62b90..615a9a8 100644 --- a/update/state/state.go +++ b/update/state/state.go @@ -92,7 +92,7 @@ func FromPbf(filename string, before time.Duration) (*DiffState, error) { timestamp = fstat.ModTime() } - replicationUrl := "http://planet.openstreetmap.org/replication/minute/" + replicationUrl := "https://planet.openstreetmap.org/replication/minute/" seq := estimateSequence(replicationUrl, timestamp) if seq == 0 {