Skip to content

Server Configuration

jamster edited this page Aug 10, 2026 · 3 revisions

The server's configurations use a macro to build the server configurations. See config_schema.rs for the actual configuration defaults.

These defaults are only used for the creation of secrets.enc, which are then copied into that encrypted file. After which, the admin/owner of the running instance of the Quorum server will be able to change those in server configs through the server commands.

Note: For development, changing these config files only takes affect when a new secrets.enc file is being created on server start.

Adding a new config

    server_port, u16, 3000, "HTTP port the server binds to (e.g. 3000)",
    server_host, String, "127.0.0.1".to_string(), "IP address the server binds to (e.g. 127.0.0.1 or 0.0.0.0)",
    server_url, String, "http://127.0.0.1:3000".to_string(), "Full server URL including protocol and port",
image

Above is an example of what it may look like for referencing.

Inside of config_schema.rs, there is the macro call for define_config_schema! where configs are initiated.

Each config is on their own line. Four parts of information are needed per config, separated by commas

  1. variable/name of the config - Used for referencing the config and getting the name.
  2. Data type - the valid rust data type.
  3. Value of the config
  4. Description of what the config is - used for server commands to understand what configs are available and what they are for.

Clone this wiki locally