. . .

Configurations

The documents in this section contains all guides to configure and fine tune your Enterprise Installation of ApiOmat .

Common service configuration

Most services share common configuration keys for options like the connection to consul or the port settings. The following table can be used for each service referencing this page; the settings are done either in the services configuration file or via docker arguments. All configuration keys can be used in addition to the services own configuration.

Key

Environmental variable

Default

Explanation

server.port

SERVER_PORT

xxxx

Default port of the service. Usually, this value should not be changed.

spring.cloud.consul.enabled

SPRING_CLOUD_CONSUL_ENABLED

true

Switch to turn usage of Consul off. Should only be switched off in testing environments where no discovery service is running or needed.

spring.cloud.consul.host

SPRING_CLOUD_CONSUL_HOST

localhost

Hostname of the consul server. On most setups, there is one Consul running on each host, so this setting can be left as is. If Consul runs on an other host, provide its hostname here.

spring.cloud.consul.port

SPRING_CLOUD_CONSUL_PORT

8500

Default port of Consul. Only change if you know what you do.

logging.config

LOGGING_CONFIG

By default, each service picks up the native logback configuration from its internal location, but you can set the location of the config file by using the "logging.config" property. Example:

logging.config=file:/my/path/resources/logback.xml