-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more linting fixes + prepare basic doc updates (#61)
- Loading branch information
1 parent
c8deb64
commit 1075128
Showing
4 changed files
with
92 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,83 +1,57 @@ | ||
.. _configuration: | ||
|
||
# TODO: update all this | ||
|
||
|
||
****************** | ||
Configuration File | ||
Configuration | ||
****************** | ||
|
||
.. contents:: | ||
:local: | ||
:depth: 2 | ||
|
||
After you have installed weaver you can customize the default weaver configuration by editing | ||
the ``weaver/config/weaver.ini`` configuration file. This configuration file overwrites the default settings in the ``buildout.cfg``: | ||
After you have installed `Weaver`, you can customize its behaviour using multiple configuration settings. | ||
|
||
.. code-block:: cfg | ||
|
||
$ vim custom.cfg | ||
$ cat custom.cfg | ||
[buildout] | ||
extends = buildout.cfg | ||
Configuration Settings | ||
======================================= | ||
|
||
All settings are configured using a ``weaver.ini`` configuration file. An `weaver.ini.example`_ file is provided | ||
with default values to help in the configuration process. | ||
|
||
[settings] | ||
hostname = localhost | ||
http-port = 8083 | ||
https-port = 5000 | ||
log-level = WARN | ||
username = | ||
password = | ||
workdir = | ||
ows-security = true | ||
ows-proxy = true | ||
rpcinterface = true | ||
wps = true | ||
wps-cfg = /path/to/my/default/pywps.cfg | ||
.. todo:: complete docs | ||
|
||
After your have made a change in ``custom.cfg`` you *need to update* the installation and restart the weaver service: | ||
|
||
.. code-block:: sh | ||
|
||
$ make update | ||
$ make restart | ||
$ make status | ||
Configuration of Data Sources | ||
======================================= | ||
|
||
Set hostname and port | ||
===================== | ||
.. todo:: complete docs | ||
|
||
Edit the options ``hostname``, ``http-port`` and ``https-port``. | ||
`data_sources.json.example`_ | ||
|
||
|
||
Activate basic-auth for XML-RPC control interface | ||
================================================= | ||
Configuration of WPS Processes | ||
======================================= | ||
|
||
Set ``username`` and ``password``. | ||
.. todo:: complete docs | ||
|
||
|
||
Configure the default WPS configuration | ||
======================================= | ||
`wps_processes.yml.example`_ | ||
|
||
Edit the ``wps-cfg`` option to set the default PyWPS configuration for the capabilities of the internal WPS (PyWPS) application. | ||
|
||
Starting the Application | ||
======================================= | ||
|
||
Deactivate weaver components | ||
============================== | ||
.. todo:: complete docs | ||
|
||
weaver has four components which by default are activated: | ||
``make start`` (or similar command) | ||
|
||
ows-security | ||
The OWS security wsgi middleware | ||
ows-proxy | ||
A proxy wsgi application for OWS services | ||
rpcinterface | ||
An XML-RPC interface to control token generation and service registration | ||
wps | ||
An internal WPS wsgi application (PyWPS) | ||
- need to start ``gunicorn/pserve`` (example `Dockerfile-manager`_) | ||
- need to start ``celery`` worker (example `Dockerfile-worker`_) | ||
|
||
By setting a component option to ``false`` you can deactivate it: | ||
|
||
.. code-block:: sh | ||
|
||
[settings] | ||
ows-proxy = false | ||
.. _weaver.ini.example: ../../../config/weaver.ini.example | ||
.. _data_sources.json.example: ../../../config/data_sources.json.example | ||
.. _wps_processes.yml.example: ../../../config/wps_processes.yml.example | ||
.. _Dockerfile-manager: ../../../docker/Dockerfile-manager | ||
.. _Dockerfile-worker: ../../../docker/Dockerfile-worker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters