Consul Connection Parameters
Provide the following configuration information during runtime to connect to the Consul server.
Property Name | Required | Description |
---|---|---|
server_address | Yes | Address of the Consul server, which could be run locally or elsewhere in the cloud. |
key_prefix | No | Prefix to be prepended to the lookup key. This is essentially the hierarchy that your app follows to get to the Key location in the Consul. This is helpful in case the key hierarchy is not fixed and may change based on the environment during runtime. It is also helpful in case that you want to switch to a different configuration service such as the AWS param store. Although it is a good idea to include the app name in the
key_prefix , it is not required.
key_prefix can be any hierarchy that is meaningful to you.
As an example of a
|
acl_token | No | Use this parameter if you have key access protected by ACL. Tokens specify which keys can be accessed from the Consul. You create the token on the ACL tab in Consul.
During runtime, if you use the
To protect the token, encrypt the token for the
./<app_executable> --encryptsecret <token_copied_from_Consul> The command outputs the encrypted token that you can use as the SECRET. Note: Since special characters (such as `! | < > & `) are shell command directives, if they appear in the token string when encrypting the token, you must use a backslash (\) to escape such characters.
|
insecure_connection | No |
Set to
Default: |