From 2ae12c8e28a9bc65373d3083d970d257ccf76bf0 Mon Sep 17 00:00:00 2001 From: sysadmin Date: Thu, 14 May 2026 22:25:27 -0400 Subject: [PATCH] =?UTF-8?q?A=C3=B1adir=20pgtilesrv=5Fconfig.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pgtilesrv_config.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 pgtilesrv_config.sh diff --git a/pgtilesrv_config.sh b/pgtilesrv_config.sh new file mode 100644 index 0000000..c7864d6 --- /dev/null +++ b/pgtilesrv_config.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +eval MIDOMINIO=$(docker exec arches_db printenv DOMAINS) +eval MIPROY=$(docker exec arches_db printenv COMPOSE_PROJECT_NAME) + +MISQL="INSERT INTO map_sources (name, source) VALUES ('ponderacion-pg-tilesrv', '{\"type\": \"vector\", \"tiles\": [\"https://$MIDOMINIO/pgtileserv/public.ponderacion/{z}/{x}/{y}.pbf\"], \"tileSize\": 512}') ON CONFLICT DO NOTHING RETURNING *;" + +docker exec arches_db psql -U postgres -d $MIPROY -c "$MISQL" \ No newline at end of file