Skip to content

Commit e838310

Browse files
authored
Merge pull request #119 from Sohalt/master
Use https everywhere and remove `--allow-unauthenticated`
2 parents d8f2fc1 + cca2d00 commit e838310

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
1313
RUN apt-get update \
1414
&& apt-get install wget gnupg2 lsb-core -y \
1515
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
16-
&& echo "deb [ trusted=yes ] http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list \
16+
&& echo "deb [ trusted=yes ] https://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list \
1717
&& apt-get update \
1818
&& apt-get install -y apt-transport-https ca-certificates
1919

2020
RUN apt-get install -y curl \
2121
&& wget --quiet -O - https://deb.nodesource.com/setup_10.x | bash - \
2222
&& apt-get install -y nodejs
2323

24-
RUN apt-get install -y --no-install-recommends --allow-unauthenticated \
24+
RUN apt-get install -y --no-install-recommends \
2525
apache2 \
2626
apache2-dev \
2727
autoconf \
@@ -82,7 +82,7 @@ RUN apt-get install -y --no-install-recommends --allow-unauthenticated \
8282
&& rm -rf /var/lib/{apt,dpkg,cache,log}/
8383

8484
# Set up PostGIS
85-
RUN wget http://download.osgeo.org/postgis/source/postgis-3.0.0.tar.gz -O postgis.tar.gz \
85+
RUN wget https://download.osgeo.org/postgis/source/postgis-3.0.0.tar.gz -O postgis.tar.gz \
8686
&& mkdir -p postgis_src \
8787
&& tar -xvzf postgis.tar.gz --strip 1 -C postgis_src \
8888
&& rm postgis.tar.gz \

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ It is also possible to let the container download files for you rather than moun
4444

4545
```
4646
docker run \
47-
-e DOWNLOAD_PBF=http://download.geofabrik.de/europe/luxembourg-latest.osm.pbf \
48-
-e DOWNLOAD_POLY=http://download.geofabrik.de/europe/luxembourg.poly \
47+
-e DOWNLOAD_PBF=https://download.geofabrik.de/europe/luxembourg-latest.osm.pbf \
48+
-e DOWNLOAD_POLY=https://download.geofabrik.de/europe/luxembourg.poly \
4949
-v openstreetmap-data:/var/lib/postgresql/12/main \
5050
overv/openstreetmap-tile-server \
5151
import
@@ -238,7 +238,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
238238
you may not use this file except in compliance with the License.
239239
You may obtain a copy of the License at
240240
241-
http://www.apache.org/licenses/LICENSE-2.0
241+
https://www.apache.org/licenses/LICENSE-2.0
242242
243243
Unless required by applicable law or agreed to in writing, software
244244
distributed under the License is distributed on an "AS IS" BASIS,

openstreetmap-tiles-update-expire

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ if [ $# -eq 1 ] ; then
111111
m_info "Initialising Osmosis replication system to $1"
112112
mkdir $WORKOSM_DIR
113113
$OSMOSIS_BIN --read-replication-interval-init workingDirectory=$WORKOSM_DIR 1>&2 2> "$OSMOSISLOG"
114-
wget "http://replicate-sequences.osm.mazdermind.de/?"$1"T00:00:00Z" -O $WORKOSM_DIR/state.txt
114+
wget "https://replicate-sequences.osm.mazdermind.de/?"$1"T00:00:00Z" -O $WORKOSM_DIR/state.txt
115115
mv $WORKOSM_DIR/configuration.txt $WORKOSM_DIR/configuration_orig.txt
116-
sed "s!baseUrl=http://planet.openstreetmap.org/replication/minute!baseUrl=https://planet.openstreetmap.org/replication/minute!" $WORKOSM_DIR/configuration_orig.txt > $WORKOSM_DIR/configuration.txt
116+
sed "s!baseUrl=https://planet.openstreetmap.org/replication/minute!baseUrl=https://planet.openstreetmap.org/replication/minute!" $WORKOSM_DIR/configuration_orig.txt > $WORKOSM_DIR/configuration.txt
117117
else
118118
# make sure the lockfile is removed when we exit and then claim it
119119

run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ if [ "$1" = "import" ]; then
4444
# Download Luxembourg as sample if no data is provided
4545
if [ ! -f /data.osm.pbf ] && [ -z "$DOWNLOAD_PBF" ]; then
4646
echo "WARNING: No import file at /data.osm.pbf, so importing Luxembourg as example..."
47-
DOWNLOAD_PBF="http://download.geofabrik.de/europe/luxembourg-latest.osm.pbf"
48-
DOWNLOAD_POLY="http://download.geofabrik.de/europe/luxembourg.poly"
47+
DOWNLOAD_PBF="https://download.geofabrik.de/europe/luxembourg-latest.osm.pbf"
48+
DOWNLOAD_POLY="https://download.geofabrik.de/europe/luxembourg.poly"
4949
fi
5050

5151
if [ -n "$DOWNLOAD_PBF" ]; then

0 commit comments

Comments
 (0)