gws.server.core
¶
Configuration for embedded servers.
Source code: gws.server.core
Module Contents¶
- class gws.server.core.Config(*args, **kwargs)¶
Bases:
gws.Config
Server module configuration
- autoRun: str = ''¶
Shell command to run before the server start. (deprecated in 8.2)
- mapproxy: MapproxyConfig | None¶
Bundled Mapproxy module.
- monitor: MonitorConfig | None¶
Monitor configuration.
- postConfigure: str = ''¶
Shell or python script to run run after the service has been configured. (added in 8.2)
- preConfigure: str = ''¶
Shell or python script to run before configuring the server. (added in 8.2)
- 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 = 'Europe/Berlin'¶
Timezone for this server.
- withMapproxy: bool = True¶
Enable the mapproxy server. (added in 8.2)
- withMonitor: bool = True¶
Enable the monitor. (added in 8.2)
- withSpool: bool = True¶
Enable the spool server. (added in 8.2)
- withWeb: bool = True¶
Enable the web server. (added in 8.2)
- class gws.server.core.LogConfig(*args, **kwargs)¶
Bases:
gws.Config
Logging configuration
- level: str = 'INFO'¶
Logging level.
- path: str = ''¶
Log path.
- class gws.server.core.MapproxyConfig(*args, **kwargs)¶
Bases:
gws.Config
Mapproxy server module
- enabled: bool | None¶
The module is enabled. (deprecated in 8.2)
- forceStart: bool = False¶
Start even if no configuration is defined.
- host: str = 'localhost'¶
Host to run the module on.
- port: int = 5000¶
Port number.
- workers: int = 4¶
Number of processes for this module.
- class gws.server.core.MonitorConfig(*args, **kwargs)¶
Bases:
gws.Config
Monitor module configuration.
- disableWatch: bool = False¶
Disable file system watching. (added in 8.2)
- enabled: bool | None¶
The module is enabled. (deprecated in 8.2)
- frequency: gws.Duration = '30'¶
Periodic tasks frequency.
- ignore: list[gws.Regex] | None¶
Ignore paths that match these regexes. (deprecated in 8.2)
- class gws.server.core.QgisConfig(*args, **kwargs)¶
Bases:
gws.Config
External QGIS server configuration.
- host: str = 'qgis'¶
Host where the qgis server runs.
- port: int = 80¶
Port number.
- class gws.server.core.SpoolConfig(*args, **kwargs)¶
Bases:
gws.Config
Spool server module
- enabled: bool | None¶
The module is enabled. (deprecated in 8.2)
- jobFrequency: gws.Duration = '3'¶
Background jobs checking frequency.
- timeout: gws.Duration = '300'¶
Job timeout. (added in 8.1)
- workers: int = 4¶
Number of processes for this module.
- class gws.server.core.WebConfig(*args, **kwargs)¶
Bases:
gws.Config
Web server module
- enabled: bool | None¶
The module is enabled. (deprecated in 8.2)
- maxRequestLength: int = 10¶
Max request length in megabytes.
- timeout: gws.Duration = '60'¶
Web server timeout. (added in 8.1)
- workers: int = 4¶
Number of processes for this module.