Feature Request: Environment variable for lizmapPluginAPIURL
Problem
Currently, the lizmapPluginAPIURL setting in Lizmap Web Client is hardcoded to use http://map:8080/lizmap/ as shown in the official documentation. This creates issues in multi-tenant Docker deployments where multiple Lizmap instances run on the same Docker network.
When multiple stacks share the same network (e.g., traefik_default), the network alias map creates conflicts because Docker randomly routes requests to one of the containers using that alias.
Current Workaround
The only solution is to create a separate internal network for each stack with dedicated aliases:
- Stack 1:
geoportal_internal_stack1 network with alias map
- Stack 2:
geoportal_internal_stack2 network with alias map
- etc.
This works but increases network complexity.
Proposed Solution
Add an environment variable (e.g., LIZMAP_PLUGINAPIURL) to allow customization of the plugin API URL, similar to how LIZMAP_WMSSERVERURL already works.
Example:
environment:
LIZMAP_WMSSERVERURL: http://geoportal-stack1:8080/ows/
LIZMAP_PLUGINAPIURL: http://geoportal-stack1:8080/lizmap/
Feature Request: Environment variable for lizmapPluginAPIURL
Problem
Currently, the
lizmapPluginAPIURLsetting in Lizmap Web Client is hardcoded to usehttp://map:8080/lizmap/as shown in the official documentation. This creates issues in multi-tenant Docker deployments where multiple Lizmap instances run on the same Docker network.When multiple stacks share the same network (e.g.,
traefik_default), the network aliasmapcreates conflicts because Docker randomly routes requests to one of the containers using that alias.Current Workaround
The only solution is to create a separate internal network for each stack with dedicated aliases:
geoportal_internal_stack1network with aliasmapgeoportal_internal_stack2network with aliasmapThis works but increases network complexity.
Proposed Solution
Add an environment variable (e.g.,
LIZMAP_PLUGINAPIURL) to allow customization of the plugin API URL, similar to howLIZMAP_WMSSERVERURLalready works.Example: