From 52c89b4775d62b064891915e423208b1d83067c1 Mon Sep 17 00:00:00 2001 From: Dariusz Zbik Date: Mon, 10 Feb 2020 22:24:34 +0100 Subject: [PATCH] fix configuration values inconsistency --- README.md | 4 ++-- run.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4a059af..6cec73c 100644 --- a/README.md +++ b/README.md @@ -90,13 +90,13 @@ This will enable a background process that automatically downloads changes from ### Cross-origin resource sharing -To enable the `Access-Control-Allow-Origin` header to be able to retrieve tiles from other domains, simply set the `ALLOW_CORS` variable to `1`: +To enable the `Access-Control-Allow-Origin` header to be able to retrieve tiles from other domains, simply set the `ALLOW_CORS` variable to `enabled`: ``` docker run \ -p 8080:80 \ -v openstreetmap-data:/var/lib/postgresql/12/main \ - -e ALLOW_CORS=1 \ + -e ALLOW_CORS=enabled \ -d overv/openstreetmap-tile-server \ run ``` diff --git a/run.sh b/run.sh index 37b6bbd..d034918 100755 --- a/run.sh +++ b/run.sh @@ -79,7 +79,7 @@ if [ "$1" = "run" ]; then chown postgres:postgres /var/lib/postgresql -R # Configure Apache CORS - if [ "$ALLOW_CORS" == "1" ]; then + if [ "$ALLOW_CORS" == "enabled" ]; then echo "export APACHE_ARGUMENTS='-D ALLOW_CORS'" >> /etc/apache2/envvars fi