gws.server
¶
Configuration and management of embedded servers.
GWS runs several servers in the container: WSGI backend servers (Web and Mapproxy), the Spool server for background jobs and the frontend NGINX proxy.
This module provides configuration and control utilities for these facilities. It handles GWS startups and reloads.
The GWS startup sequence is the following:
the main script
bin/gws
invokes thestart
command ingws.server.cli
CLI delegates to
gws.server.control
control invokes the
Application
configuration ingws.base.application.core.Object
the Application creates a
ServerManager
(gws.server.manager.Object
)the Manager creates configuration files for embedded servers and a startup shell script to start them
the control is returned to
bin/gws
, which invokes the startup scriptthe script starts the backends and finally NGINX, which keeps running in foreground
Source code: gws.server
Subpackages¶
Submodules¶
Package Contents¶
- class gws.server.Config(*args, **kwargs)¶
Bases:
gws.Config
Server module configuration
- autoRun: str = ''¶
Shell command to run before server start.
- mapproxy: MapproxyConfig | None¶
Bundled Mapproxy module.
- monitor: MonitorConfig | None¶
Monitor configuration.
- qgis: QgisConfig | None¶
Qgis server configuration.
- spool: SpoolConfig | None¶
Spool server module.
- templates: list[gws.ext.config.template] | None¶
Configuration templates.
- timeout: gws.Duration = '60'¶
Server timeout. (deprecated in 8.1)
- timeZone: str = 'UTC'¶
Timezone for this server.