Skip to content

tree gateway Config File

Thiago da Rosa de Bustamante edited this page Mar 26, 2018 · 4 revisions

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

Property Type Description Required
database DatabaseConfig Configurations for gateway databases. true
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

DatabaseConfig

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