From cfc243e848058f72c8c66d5a0b16e45ab217730d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Rodrigo?= Date: Mon, 12 Oct 2020 15:45:09 +0200 Subject: [PATCH] Add protocol to postserve --serve paramter (#1007) The current option of postserve in the docker-compose produce an invalid tilejson. ```json "tiles": ["localhost:8090/tiles/{z}/{x}/{y}.pbf"] ``` `tiles` should be URL. The protocol is missing. Not sure about the best way to fix this. Just adding `http://` to the docker-compose.yaml does not allow https usage. But setting protocol in `OMT_HOST` seems weird. Could add an extra OMT_PROTOCOL with `http` as default. --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7190e8f7..176e6752 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -90,7 +90,7 @@ services: postserve: image: "openmaptiles/openmaptiles-tools:${TOOLS_VERSION}" - command: "postserve ${TILESET_FILE} --verbose --serve=${OMT_HOST:-localhost}:${PPORT:-8090}" + command: "postserve ${TILESET_FILE} --verbose --serve=${OMT_HOST:-http://localhost}:${PPORT:-8090}" env_file: .env environment: TILESET_FILE: ${TILESET_FILE}