Skip to content

Commit 7ab7e2d

Browse files
committed
Update MultiTenancy documentation with instructions how to configure separate qgs-resources directories
1 parent 919fe92 commit 7ab7e2d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/topics/MultiTenancy.md

+6
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ A minimal configuration for tenant `tenant_name` may look as follows:
104104
"tenant": "tenant_name",
105105
"default_qgis_server_url": "http://qwc-qgis-server/ows/",
106106
"config_db_url": "postgresql:///?service=qwc_configdb",
107+
"qgis_projects_base_dir": "/data",
107108
"qgis_projects_scan_base_dir": "/data/tenant_name/scan"
108109
...
109110
},
@@ -151,6 +152,11 @@ A minimal configuration for tenant `tenant_name` may look as follows:
151152
* The `qwc2_config_file`, `qwc2_index_file`, `qwc2_base_dir` and `qwc2_path` paths will determine whether the viewer build/configuration is shared or separate for each tenant.
152153
* To use a separate assets folder for each tenant, you can set an appropriate `assetsPath` in the `qwc2_config_file` of each tenant.
153154
* The various service URLs in the `mapViewer` configuration and in other service configurations need to match what is expected in the `api-gateway` configuration.
155+
* To separate the qgis projects per tenant (avoiding the `<tenantname>/` prefix on the map names), you can proceed as follows:
156+
- Create subdirectories for each tenant in `volumes/qgs-resources`, i.e. `volumes/qgs-resources/<tenant_name>`,
157+
- Set `default_qgis_server_url` to `http://qwc-qgis-server/ows/<tenant_name>`,
158+
- Set `qgis_projects_base_dir` to `/data/<tenant_name>`,
159+
- Make sure to remove the `/ows` prefix from the `url` of any manually configured themes in `themesConfig.json`.
154160

155161
## `tenantConfig` template
156162

0 commit comments

Comments
 (0)