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/gwsinvokes thestartcommand ingws.server.cliCLI delegates to
gws.server.controlcontrol invokes the
Applicationconfiguration ingws.base.application.core.Objectthe 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