Skip to content

Commit 4687ea7

Browse files
authored
Merge pull request #5628 from Gustry/api-py-qgis-server
Tests - Enable the Py-QGIS-Server API
2 parents 4e2c4fc + fd0f2b1 commit 4687ea7

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

tests/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ LIZMAP_GROUP_ID ?= $(shell id -g)
1616
PHP_VERSION ?= 8.2
1717
LZMPOSTGISVERSION ?= 14-3
1818
LZMQGSRVVERSION ?= 3.34
19+
QGSRVAPIPORT ?= 8134
1920
LZMPGPORT ?= 8132
2021
LZMQGSRVPORT ?= 8131
2122
LZMWEBPORT ?= 8130
@@ -37,6 +38,7 @@ env:
3738
LZMPGPORT=$(LZMPGPORT)
3839
LZMQGSRVPORT=$(LZMQGSRVPORT)
3940
LZMWEBPORT=$(LZMWEBPORT)
41+
QGSRVAPIPORT=$(QGSRVAPIPORT)
4042
LIZMAP_ADMIN_LOGIN=$(LIZMAP_ADMIN_LOGIN)
4143
LIZMAP_ADMIN_EMAIL=$(LIZMAP_ADMIN_EMAIL)
4244
LIZMAP_ADMIN_DEFAULT_PASSWORD_SOURCE=$(LIZMAP_ADMIN_DEFAULT_PASSWORD_SOURCE)

tests/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,17 @@ Example:
157157
export LZMPGPORT=8150
158158
export LZMWEBPORT=8151
159159
export LZMQGSRVPORT=8152
160+
export QGSRVAPIPORT=8134
160161

161162
./run-docker up -d
162163

163-
# you can then open browser at http://localhost:8151/
164+
# you can then open browser at :
165+
# http://localhost:8151/ for Lizmap Web Client
166+
# http://localhost:8134/ for Py-QGIS-Server
164167

165168
```
166169

167-
## Changing PHP, postgresql and QGIS versions
170+
## Changing PHP, PostgreSQL and QGIS versions
168171

169172
You can change the version of some softwares to use, by setting
170173
some environment variables:

tests/docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ services:
8080
QGSRV_CACHE_STRICT_CHECK: yes
8181
QGSRV_LOGGING_LEVEL: DEBUG
8282
QGSRV_SERVER_PLUGINPATH: /srv/qgis-server-plugins
83+
QGSRV_MANAGEMENT_ENABLED: yes
84+
QGSRV_MANAGEMENT_INTERFACES: "0.0.0.0"
8385
QGSRV_SERVER_WORKERS: 4
8486
QGSRV_USER: ${LIZMAP_USER_ID}:${LIZMAP_GROUP_ID}
8587
ROUTER_HOST: map
@@ -90,6 +92,7 @@ services:
9092
- { type: bind, source: ./docker-conf/pg_service.conf, target: /srv/etc/pg_service.conf }
9193
ports:
9294
- ${LZMQGSRVPORT}:8080
95+
- ${QGSRVAPIPORT}:19876
9396
webdav:
9497
container_name: lizmap${LZMBRANCH}_test_webdav
9598
image: ugeek/webdav:amd64

0 commit comments

Comments
 (0)