Project: QGIS

Version: 3.20

Feature: Configurable Service URL

Additional options have been added to QGIS Server to improve the results of the GetCapabilities response, especially without the need to complete various fields within the QGIS Project configuration. These updates also enable many options to be set by an environment variable, or by providing headers from a proxy.

The following options have been added and will be resolved by the server in the following order:

  • Value defined in the project per service.
  • The <service>_SERVICE_URL environment variable.
  • The SERVICE_URL environment variable.
  • The custom X-Qgis-<service>-Service-Url header.
  • The custom X-Qgis-Service-Url header.
  • Build form the standard Forwarded header.
  • Build form the pseudo standard X-Forwarded-Host and X-Forwarded-Proto headers.
  • Build form the standard Host header and the server protocol.
  • Build form the server name and the server protocol.

This feature was developed by Stéphane Brunner