Repository navigation
Server Configuration
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.encfile is being created on server start.
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",
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
- variable/name of the config - Used for referencing the config and getting the name.
- Data type - the valid rust data type.
- Value of the config
- Description of what the config is - used for server commands to understand what configs are available and what they are for.