Starting the server with various configuration options can be done using a configuration file instead of using just flags. The command used to start the server with a config file: polygon-edge server --config <config_file_name>
Export config file with default configuration
The configuration with default settings for the ZChains server can be exported into a config file in either yaml or json file format. This file can be used as a template for running the server using a configuration file.
YAML
To generate the config file in yaml format:
polygon-edgeserverexport--typeyaml
or just
polygon-edgeserverexport
the config file named default-config.yaml will be created in the same directory that this command has been run from.
Checkout CLI Commands section to get information on how to use these parameters.
Typescript schema
The following is the sample format for the configuration file. It's written in TypeScript to express the properties types (string, number, boolean), from it you could derive your configuration. It's worth mentioning that the PartialDeep type from type-fest is used to express that all properties are optional.