Cloud Elements On-Prem Config File

This document describes the On-Prem Connector toml config file which lives on the client. When the On-Prem Connector starts up (either the client or server), it will create a file with default values if one does not already exist. The 'init' command for petit-client will do nothing but create this file.

This document is for advanced users only, who wish to edit their configuration directly, either because they are using the command-line tools, or because they want greater control over their Ground2Cloud installation. Normal users shouldn't have to edit this file directly. Instead, most options can be set in the "Config" section of the Ground2Cloud GUI.

All client commands, and the clientd daemon itself, accept a -c {path} command-line option to specify a config file. Otherwise, the default {user_home}/.petit/config.toml will be used. For example, most Windows installers put Ground2Cloud in C:\Ground2Cloud, so you can run (for example) petit-client status -c C:\Ground2Cloud\config.toml.

Server

As a user of the Ground2Cloud client, you shouldn't need to worry about anything in any [server] section of the configuration. If you'd like to set up your own Ground2Cloud server installation, please contact Cloud Elements support.

Client

The client section of the config file is used only by Ground2Cloud client applications and is indicated by the section headers

[client]
[client.vitae]
[client.local]

Section [client]

The [client] header indicates general-purpose values for the client to start up.

Section [client.vitae]

The [client.vitae] section contains information about the client's environment which is sent to the server. It currently has two useful properties:

Section [client.local]

The [client.local] section has values that correspond to the local service which a cloud element instance connects to. There are only two properties:

These [client.local] values may be overriden per-tenant in each tenant's own config.toml file, which contains its own [local] section with a host and port value.

Additional Values

In addition to these properties, there are some values that are fixed: they don't show up in the config file, nor can they be altered:

Under normal circumstances, this file will exist if and only if its sibling ./client.lock also exists.

To minimize the installation footprint, if the log exceeds 50,000 bytes, then a new log file is started, and the previous one will be suffixed with a counter (e.g. ./client1.log), and only the last three log files will be kept.