Merge pull request #155 from russss/https_replication

Switch replication URL to HTTPS
master
Oliver Tonnhofer 2018-01-06 22:52:30 +01:00 committed by GitHub
commit 2301ecaa3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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 {