26 Commits

Author SHA1 Message Date
Stéphane Brunner
3202e3ac70 [Server][Feature][needs-docs] Make service URL configurable
The goals are:
* To have better result in the GetCapabilities URL without having to fill it in the Project configuration
* Be able to be set by an integrator with environment variable or by providing headers from a proxy

The server resolution will use 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>-Servcie-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.
2021-04-15 09:24:41 +02:00
Denis Rouzaud
ba8a445850 run sipify 2021-03-22 21:13:52 +01:00
Nyall Dawson
50b9beaad6 [sipify] Catch more class references and insert :py:class: annotations 2021-01-31 05:41:22 +10:00
Alessandro Pasotti
0290024f21 Remove unused MAX_CACHE_LAYERS 2021-01-16 06:40:33 +10:00
Alessandro Pasotti
a470c025ca Server profiler 2020-12-02 13:55:27 +01:00
Nyall Dawson
403b2142ee Fix incorrect reference to non-existing DONT_LOAD_LAYOUTS flag 2020-08-31 11:38:02 +10:00
Blottiere Paul
028634f433 Update sip binding 2020-08-27 10:51:33 +02:00
Blottiere Paul
94e9a91592 Clean 2020-08-27 10:14:21 +02:00
Blottiere Paul
3efd98d9cf Update unit tests 2020-08-27 10:14:21 +02:00
Blottiere Paul
904000c143 Add name method 2020-08-27 10:14:19 +02:00
Blottiere Paul
d601f93ad1 Update doc 2020-08-27 10:12:55 +02:00
Blottiere Paul
48b21a052f Add new settings 2020-08-27 10:11:40 +02:00
rldhont
98741cb91f Change to QGIS_SERVER_DISABLE_GETPRINT 2020-08-17 18:46:16 +02:00
rldhont
fa7da5a68b New QGIS Server setting environement to do not load layouts
Defined a new QGIS Server setting environnement `QGIS_SERVER_DONT_LOAD_LAYOUTS` to do not load layouts when QGIS Server reads projects.
This variable will disable QGIS Server GetPrint capabilities.
2020-08-13 14:20:00 +02:00
rldhont
d711db570a Server: define QGIS_SERVER_TRUST_LAYER_METADATA setting environnement 2020-08-11 18:14:15 +02:00
Nyall Dawson
81a9db9f57 [sipify] Fix creation of cross references 2020-06-15 13:43:58 +10:00
Alessandro Pasotti
b94988aef6 Server: add QGIS_SERVER_IGNORE_BAD_LAYERS config option
Allow to override the default behavior in case of
bad layers (which is to invalidate the whole project).

When set to TRUE, the bad layers are skipped and the
project is considered available.

Followup #8922
2020-04-13 10:38:50 +02:00
Marco Bernasocchi
c65815957d fix docstring "since" for QGIS_SERVER_WMS_MAX_XXXX to 3.6.2
This was backported in #9752
2020-01-17 10:55:03 +10:00
Alessandro Pasotti
92ac7a2e93
[server] Server api and WFS3 (#10016)
Implementation of OGC API and WFS3 core draft specification
2019-08-06 16:38:21 +02:00
Marco Bernasocchi
2cda2afe3e Add test and sip
add missing methods

Signed-off-by: Marco Bernasocchi <marco@opengis.ch>

Update src/server/qgsserversettings.cpp

Co-Authored-By: mbernasocchi <marco@opengis.ch>

Update src/server/qgsserversettings.cpp

Co-Authored-By: mbernasocchi <marco@opengis.ch>

Update tests/src/python/test_qgsserver_wms_getmap.py

Co-Authored-By: mbernasocchi <marco@opengis.ch>

Update src/server/qgsserversettings.h

Co-Authored-By: mbernasocchi <marco@opengis.ch>

Adress most review comments in PR

Signed-off-by: Marco Bernasocchi <marco@opengis.ch>
2019-04-05 08:01:41 +02:00
Alessandro Pasotti
0355611b60 Added \since QGIS 3.8 2019-04-01 17:25:36 +02:00
Alessandro Pasotti
120ae773b6 [server][feature][needs-docs] Add env vars to override locale ...
...and group separator:

QGIS_SERVER_OVERRIDE_SYSTEM_LOCALE (default '')
QGIS_SERVER_SHOW_GROUP_SEPARATOR (default false)
2019-04-01 16:22:37 +02:00
Nyall Dawson
b6d66becab Sipify 2019-02-27 09:41:11 +10:00
Éric Lemoine
5b808f6a22 [FEATURE][needs-doc] Introduce QGIS_SERVER_LOG_STDERR and deprecate file logging 2018-09-14 09:08:21 +02:00
Blottiere Paul
1ca1bd6bd2 Update sip binding 2018-07-13 08:22:28 +01:00
Denis Rouzaud
8b130f1c14 move auto generated sip file in dedicated folder (server+analysis) 2018-05-14 10:41:52 -04:00