43 Commits

Author SHA1 Message Date
Marco Hugentobler
4574ca0a2a Add server option QGIS_SERVER_RETRY_BAD_LAYERS 2025-08-29 10:27:54 +02:00
Sandro Mani
3e6aea2027 Allow configuring the server project cache size 2025-04-03 23:55:18 +02:00
Nyall Dawson
3f6b490218 Sipify 2025-04-02 11:11:10 +10:00
Nyall Dawson
3a578d6712 Header update 2024-08-13 20:28:55 +10:00
Even Rouault
d26b498192
Merge pull request #56223 from rouault/remove_obsolete_since
Remove obsolete "since QGIS 1.x/2.x/3.0" mentions
2024-02-19 14:52:21 +01:00
pathmapper
cc6ed07454 More unit docs for QGIS_SERVER_PROJECT_CACHE_CHECK_INTERVAL
ref https://github.com/qgis/QGIS/pull/56213#issuecomment-1930853774
2024-02-19 08:43:34 +10:00
Even Rouault
15ea5c46bc
Header files: remove all mentions of '\since QGIS 3.0' 2024-02-18 20:57:23 +01:00
Nyall Dawson
50c76929e1
Followup 30700f1, ensure links to Qgis members are set in docstrings 2023-03-31 10:46:24 +10:00
Juergen E. Fischer
715f043d8b server: make capabilities cache size configurable and add a note when all slots are taken 2023-03-29 15:56:07 +02:00
rldhont
bcd3febef8 [Server] Defined QGIS_SERVER_APPLICATION_NAME variable
The QGIS_SERVER_APPLICATION_NAME variable can be used instead of QGIS_APPLICATION_FULL_NAME.
2023-01-16 12:05:45 +01:00
rldhont
0fc64b101a feat: Open layers in a read only mode with Qgis::ProjectReadFlag::ForceLayerReadOnly
In most cases of use of QGIS Server, it is not necessary to access the layers in write mode.
The read-only mode is sufficient.

We would like to introduce a new flag Qgis::ProjectReadFlag::ForceLayerReadOnly to
open layers in a read-only mode.
2022-09-12 09:17:02 +10:00
Alessandro Pasotti
65baa23f0e Typos 2022-09-07 16:40:43 +02:00
Alessandro Pasotti
2beed8345c Server: add QGIS_SERVER_ALLOWED_EXTRA_SQL_TOKENS settings var
This new feature allows to specify extra tokens allowed for
WMS FILTER definition.

The current list of accepted tokens is rather small and
this setting will allow the sysadmins to enlarge the list
of allowed tokens.
2022-09-07 16:40:43 +02:00
Julien Cabieces
012b6a46db constify methods 2022-04-29 08:21:47 +10:00
David Marteau
12111098c2
Implements alternate project's cache strategies
- FileSystem cache strategy
    - Periodic cache strategy
    - Null cache strategy
2022-03-09 10:12:40 +01:00
Nyall Dawson
02266ef8e6 Rename Qgis::MessageLevel::None to NoLevel. None is a reserved
keyword in Python, so this value was previously inaccessible to PyQGIS
scripts

Also change all references to Qgis::MessageLevel values to their
fully qualified names, to ease a future transition to an enum
class (when sip bugs are fixed)

Fixes #42996
2021-05-30 10:36:01 +10:00
Alessandro Pasotti
497197e316 Updated js 2021-05-06 14:55:30 +02:00
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