Skip to content

tree gateway Config File

thiagobustamante edited this page Jul 5, 2017 · 4 revisions

This is the Server config descriptor. It support the following properties:

Property Type Description Required
database DatabseConfig Configurations for gateway databases. true
gateway GatewayConfig The default gateway configuration. false
middlewarePath string Folder where the gateway will install its middleware functions. false
rootPath string The root folder where the gateway will use as its work dir. false

DatabseConfig

Configure gateway database.

Property Type Description Required
redis RedisConfig Configurations for gateway REDIS database. true

The configuration file can be written in json or yaml formats.

Example:

{
    "rootPath": ".",
    "database": {
        "redis": {
            "standalone": {
                "host": "{REDIS_PORT_6379_TCP_ADDR}",
                "port": "{REDIS_PORT_6379_TCP_PORT}"
            }
        }
    }
}

or

rootPath: '.'
database:
    redis:
        standalone:
            host: '{REDIS_PORT_6379_TCP_ADDR}'
            port: '{REDIS_PORT_6379_TCP_PORT}'
Clone this wiki locally