Configuration

Command-line options

You can overwrite the default PyWPS configuration by using command-line options. See the c3s magic wps help which options are available:

$ c3s_magic_wps start --help
--hostname HOSTNAME        hostname in PyWPS configuration.
--port PORT                port in PyWPS configuration.

Start service with different hostname and port:

$ c3s_magic_wps start --hostname localhost --port 5001

Use a custom configuration file

You can overwrite the default PyWPS configuration by providing your own PyWPS configuration file (just modifiy the options you want to change). Use one of the existing sample-*.cfg files as example and copy them to etc/custom.cfg.

For example change the hostname (demo.org) and logging level:

$ cd c3s_magic_wps
$ vim etc/custom.cfg
$ cat etc/custom.cfg
[server]
url = http://demo.org:5000/wps
outputurl = http://demo.org:5000/outputs

[logging]
level = DEBUG

[data]
archive_root =/cmip5
obs_root = /obs

Start the service with your custom configuration:

# start the service with this configuration
$ c3s_magic_wps start -c etc/custom.cfg